github-actions

Generate Release Information from SHA

Purpose

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.

Input Parameters

Outputs

Example

       - 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