45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Optional checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- master
|
|
|
|
# automatically cancel in-progress builds if another commit is pushed
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
# default to 0 permissions
|
|
# (job-level overrides add the minimal permissions needed)
|
|
permissions:
|
|
contents: none
|
|
|
|
jobs:
|
|
all-optional-checks-successful:
|
|
timeout-minutes: 30
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
|
with:
|
|
fetch-depth: 5
|
|
persist-credentials: false
|
|
submodules: false
|
|
- name: Check valgrind workflow
|
|
shell: bash
|
|
run: |
|
|
# ref: https://docs.github.com/en/actions/reference/workflows-and-actions/contexts#github-context
|
|
PR_BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
|
echo "checking status for branch '${PR_BRANCH}'"
|
|
./.ci/check-workflow-status.sh \
|
|
"${PR_BRANCH}" \
|
|
'r_valgrind.yml' \
|
|
${{ github.event.number }}
|