Git Product home page Git Product logo

Comments (9)

wzieba avatar wzieba commented on August 15, 2024 5

It doesn't look like this action does anything to help here, but I was thinking maybe it should?

That's true, I didn't pay attention to multi-line release notes. For sure it's good idea, I will check the possibilities. Thanks for rising* this issue!

from appcenter-github-action.

sgurdag avatar sgurdag commented on August 15, 2024 2

Here is how i do it :

 releaseNotes: |+

                       Initiated by **${{github.actor}}** --- **Github Actions**
                       - ${{github.workflow}}
                       - ${{github.ref}}
                       - Build (${{github.run_number}})

The magic is starting with |+ . Then each line in yaml file will be shown in new line in AppCenter.

from appcenter-github-action.

VladSumtsov avatar VladSumtsov commented on August 15, 2024

Hi! Do you have any updates on this? :)

from appcenter-github-action.

wzieba avatar wzieba commented on August 15, 2024

hi @VladSumtsov 👋 no, sorry I didn't prioritize it - I don't have any updates on this. I'll happily welcome any PR but for now, I don't have enough time to do this myself.

from appcenter-github-action.

tonyarnold avatar tonyarnold commented on August 15, 2024

@sgurdag that's an interesting bit of info - does it work if you push through a multi-line string as per this issue?

from appcenter-github-action.

sgurdag avatar sgurdag commented on August 15, 2024

@sgurdag that's an interesting bit of info - does it work if you push through a multi-line string as per this issue?

Hey @tonyarnold, Yes,It does. You can see my release note on appcenter here:

Screenshot 2021-06-24 at 20 46 41

It is the way of having multi-lines in YAML as it is explicitly mentioned in syntax doc here : https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html

from appcenter-github-action.

tonyarnold avatar tonyarnold commented on August 15, 2024

I'm dubious about whether this will work with a multi-line replacement like ${{github.event.release.body}} — I'll have to give it a try for my next beta release.

from appcenter-github-action.

p-fischer avatar p-fischer commented on August 15, 2024

@tonyarnold I tested this with a multi-line replacement. See this snippet:

releaseNotes: |
  ${{ steps.extract-release-notes.outputs.release_notes }}

Unfortunately, it didn't work.

Another good and clean solution to support multi-line release notes would be to provide the release notes in a file and to support the CLI parameter release-notes-file

from appcenter-github-action.

p-fischer avatar p-fischer commented on August 15, 2024

Update: The approach can work. It failed in my test because the release notes started with - .
However, if they don't start with a minus it does work.

I worked around the limitation by adding a title in the YAML-config:

releaseNotes: |+
  Release notes:
  ${{ steps.extract-release-notes.outputs.release_notes }}

from appcenter-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.