From f82f1aa97cc9032a057cd3d8f50f114c812f3208 Mon Sep 17 00:00:00 2001 From: Nicolas Bennett <3158446+nbenn@users.noreply.github.com> Date: Fri, 25 Sep 2026 06:56:08 +0000 Subject: [PATCH] Add a release workflow running blockr.ci's release gate The mechanical CRAN checks run on every push to a pull request labelled release and report in one comment, so a release-prep branch shows what CRAN will flag before the tarball is built from it. --- .github/workflows/release.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..94df5b1 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,23 @@ +# The mechanical CRAN release checks from blockr.ci, reported in one +# comment on the pull request. Runs only while the pull request carries +# the `release` label. A job skipped here never creates the called +# workflow's check contexts, so drop the `if:` before requiring any of +# them in a ruleset. +on: + pull_request: + types: [opened, reopened, synchronize, labeled] + +name: release + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: write + +jobs: + release: + if: contains(github.event.pull_request.labels.*.name, 'release') + uses: BristolMyersSquibb/blockr.ci/.github/workflows/release-gate.yaml@main