+ ๐ A GitHub Action for determining the status of a workflow when run inside a
+ pipeline. Largely used to post workflow statuses to Slack via
+ https://github.com/jmpa-io/post-to-slack.
- Inspired by
worfklow-conclusion-action
bytechnote-space
; Created using this doc from GitHub.
General:
determine-conclusion:
runs-on: ubuntu-latest
outputs:
conclusion: ${{ steps.determine.outputs.conclusion }}
steps:
- id: determine
uses: jmpa-io/determine-workflow-conclusion@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
do-something-else:
needs: [determine-conclusion]
runs-on: ubuntu-latest
steps:
- run: |
echo "${{ needs.determine-conclusion.outputs.conclusion }}"
A GitHub personal access token; used to determine the workflow conclusion via the GitHub API.