Skip to content

How to write a multiline commit_message #279

Discussion options

You must be logged in to vote

The value passed to commit_message must be a string. Actions isn't clever enough to see that you're referencing a file here.
I haven't tested the workflow below, but it should technically work:
(Added a test to cover this.)

name: "test"
jobs:
  stale:
    runs-on: ubuntu-latest
    steps:

      - name: Checkout
        uses: actions/checkout@main

       - name: Update 1
        run: |
          sed -i "8c PKG_VERSION:=1.1" Makefile
          cd
          echo "Version Update Title" >> commitmessage.txt

      - name: Update 1
        run: |
          sed -i "8c PKG_VERSION:=1.1" Makefile
          cd
          echo "Makefile version update 1.1" >> commitmessage.txt

      - name: Update…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@smallprogram
Comment options

@smallprogram
Comment options

@stefanzweifel
Comment options

Answer selected by smallprogram
Comment options

You must be logged in to vote
2 replies
@stefanzweifel
Comment options

@smallprogram
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants