Introduction of the cargo.build rule to manage patternsleuth as a target #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Check | |
# To trigger the check | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
start-check: | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write # Permission to create a Check Run | |
contents: write # Permission to write a repository_dispatch requests | |
steps: | |
- name: Create Check | |
run: exit 1 | |
success: | |
name: Success gate | |
if: always() | |
needs: | |
- start-check | |
runs-on: ubuntu-latest | |
steps: | |
- run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}' | |
- name: Done | |
run: exit 0 |