During the workflow it maybe necessary to create a Release or use the information from a PR to carry out another task ( Such as update Trello ). During the merge process you need to find out what the merging commit was via the API.
- name: Generate Tag from PR Number
id: tag_version
uses: DFE-Digital/github-actions/GenerateReleaseFromSHA@master
with:
sha: $
- name: Create a GitHub Release
if: steps.tag_version.outputs.pr_found == 1
uses: actions/create-release@v1
env:
GITHUB_TOKEN: $
with:
tag_name: $
release_name: Release $
body: $
commitish: $
prerelease: false
draft: false