Since GitHub Actions were rewritten after the original version functionality of this action can be achieved out of the box by creating a workflow like this:
on:
check_suite:
type: ['completed']
name: Continue after Cirrus CI Complets Successfully
jobs:
continue:
name: After Cirrus CI
if: github.event.check_suite.app.name == 'Cirrus CI' && github.event.check_suite.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- name: Continue
run: echo "Hello after Cirrus CI Completed"
To use the action simply add the following lines to your .github/main.workflow
:
action "Check Suite Passes" {
uses = "docker://cirrusactions/check-suite:latest"
env = {
APP_NAME = "Super App"
}
}
This action will check that a check suite succeeded. See .github/main.workflow
for a full demo workflow.
Let's say a repository has Cirrus CI App installed that uses Checks API to report CI build statuses. Then your
.github/main.workflow
can look like this:
workflow "Cirrus CI Demo" {
on = "check_suite"
resolves = "Cirrus CI Passes"
}
action "Cirrus CI Passes" {
uses = "docker://cirrusactions/check-suite:latest"
env = {
APP_NAME = "Cirrus CI"
}
}