From e8e8e161364f82fb8f7ea849c6577ab179816a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Tue, 17 Dec 2024 17:06:43 +0000 Subject: [PATCH] ci: Call `semver_checks` from a pull_request_target --- .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 }}