From 94cc78e1447414802ebf044cf2db99afd72e07e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:10:04 +0000 Subject: [PATCH] ci: Call `semver_checks` from `pull_request_target` (#107) Fixes errors when running the workflow for dependabot See https://github.com/CQCL/hugr/pull/1661 --- .github/workflows/ci.yml | 7 ------- .github/workflows/semver-checks.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/semver-checks.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 544e894..f09ec51 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,10 +71,3 @@ jobs: run: cargo test --verbose --no-default-features - name: Tests with all features run: cargo test --verbose --all-features - - rs-semver-checks: - needs: [check] - if: ${{ github.event_name == 'pull_request' }} - uses: CQCL/hugrverse-actions/.github/workflows/rs-semver-checks.yml@main - secrets: - GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }} diff --git a/.github/workflows/semver-checks.yml b/.github/workflows/semver-checks.yml new file mode 100644 index 0000000..94c29b3 --- /dev/null +++ b/.github/workflows/semver-checks.yml @@ -0,0 +1,13 @@ +name: Rust Semver Checks +on: + pull_request_target: + branches: + - main + +jobs: + rs-semver-checks: + uses: CQCL/hugrverse-actions/.github/workflows/rs-semver-checks.yml@main + with: + apt-dependencies: capnproto + secrets: + GITHUB_PAT: ${{ secrets.HUGRBOT_PAT }}