Skip to content

Passing variables to commit_message #182

Discussion options

You must be logged in to vote

Hi Steve,

This should definitely be possible.
I think this should be solvable by using contexts.

Maybe a simple change like the one below works for you?

- name: Commit Build Number
  uses: stefanzweifel/git-auto-commit-action@v4
  with:
    commit_message: "Build Number $GITHUB_RUN_NUMBER"
    file_pattern: version.h

I've also found the following StackOverflow questions/answers that seem to e similar to what you want to achieve:


Just to clarify:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stevehillsTB
Comment options

Answer selected by stevehillsTB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants