Open jacquesvdm7 opened 9 months ago
According to the readme, it is by design. In the section about optional keys for "with" the readme says: "target_committish - Commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Defaults to repository default branch."
Inserting
target_commitish: {{ github.sha }}
before the "files: |" line near the end of your workflow should give you the behavior you want.
we were just caught out by this, seems strange that it wouldn't default to targeting the commit that triggered the action to execute.
This is the extract from the script to create the release and when I check the release notes generated it's obvious that it's for the master branch and not for the PRODUCTION branch that triggered the workflow. Is this a bug or by design?
if: startsWith(github.ref, 'refs/tags/')