update readme #30
Workflow file for this run
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: Run Action | |
on: | |
pull_request: | |
jobs: | |
run-golang: | |
env: | |
REQUIRED_CHECKS_DEBUG: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- run: go run main.go | |
env: | |
INPUT_REQUIRED_WORKFLOW_PATTERNS: | | |
- tests | |
INPUT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run-master: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for required checks | |
uses: roryq/required-checks@master | |
with: | |
# required-workflow-patterns is a yaml list of regex patterns to check | |
required-workflow-patterns: | | |
# will match any check with tests in its name | |
- tests | |
# will match either markdown-lint or yaml-lint | |
- (markdown-lint|yaml-lint) | |
# GitHub token | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# number of seconds to wait before starting the first poll | |
initial-delay-seconds: 15 | |
# number of seconds to wait between polls | |
poll-frequency-seconds: 30 | |
# number of times to retry if a required check is missing. | |
# This is useful in cases where the workflow is still being created. | |
missing-required-retry-count: 3 | |
# target sha that the checks have been run against. Defaults to ${{ github.event.pull_request.head.sha || github.sha }} | |
target-sha: ${{ github.event.pull_request.head.sha || github.sha }} | |