A Github Action that checks another workflow's latest status
token
- Your Github API token. You can just use${{ secrets.GITHUB_TOKEN }}
workflow
- The filename of the workflow to checkbranch
- Branch name to check. Defaults tomain
repo
- (Optional) Repository to checkevent
- (Optional) Event to validate, see Events that trigger workflows to get the full list
status
&conclusion
- Result of Github API. For a list of the possiblestatus
andconclusion
options, see Create a check run- Please note that
conclusion
may be null when the workflow is currently running
name: 'release-version'
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: # Build scripts
- name: Check CI
id: check-ci
uses: ronymeyer/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
workflow: ci.yml
event: push
branch: development
- name: Release
if: ${{ steps.check-ci.outputs.conclusion == 'success' }}
run: # Release scripts
The scripts and documentation in this project are released under the MIT License