Closed knutole closed 1 year ago
The git-auto-commit-action
step in your workflow doesn't have an ID. So ${{steps.auto-commit-action.outputs.commit_hash }}
will return nothing.
Add an ID and it should work.
- uses: stefanzweifel/git-auto-commit-action@v4
+ id: auto-commit-action
name: Commit version ${{ env.motivero_version }}
with:
commit_message: Bumped version
Note that set-output
is being deprecated by GitHub.
As this way only just announced, I don't know how this will exactly impact the Action.
Yes thanks, just figured it out. I wrongly assumed the id was inferred.
git-auto-commit Version
v4 fd157da78fa13d9383e5580d1fd1184d89554b51
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
After commit, the
steps.auto-commit-action.outputs.commit_hash
variable does not contain the SHA, as promised in docs.Steps to reproduce
Run workflow.
Tried solutions
Adding a
id
to the job fixes the issue actually. I guess I read the docs wrong, the id of the step was inferred. Perhaps improve docs?Example Workflow
Relevant log output