https://github.com/jmpa-io/determine-workflow-conclusion
🐋 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.
https://github.com/jmpa-io/determine-workflow-conclusion
actions
Last synced: over 1 year ago
JSON representation
🐋 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.
- Host: GitHub
- URL: https://github.com/jmpa-io/determine-workflow-conclusion
- Owner: jmpa-io
- License: mit
- Created: 2022-03-28T08:13:22.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-13T20:12:43.000Z (over 1 year ago)
- Last Synced: 2025-01-21T06:12:33.181Z (over 1 year ago)
- Topics: actions
- Language: Makefile
- Homepage:
- Size: 7.48 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/jmpa-io/determine-workflow-conclusion/actions/workflows/README.yml)
[](https://github.com/jmpa-io/determine-workflow-conclusion/actions/workflows/cicd.yml)
# `determine-workflow-conclusion`
```diff
+ 🐋 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` by `technote-space`](https://github.com/technote-space/workflow-conclusion-action); Created using [this doc](https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/creating-a-docker-container-action) from GitHub.
## `usage`
General:
```yaml
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 }}"
```
## `inputs`
### (required) `token`
A GitHub personal access token; used to determine
the workflow conclusion via the GitHub API.