From 43b5a85a31d2b0d27b71573e0856781152e81e10 Mon Sep 17 00:00:00 2001 From: iGxnon Date: Thu, 30 Nov 2023 13:59:34 +0800 Subject: [PATCH] test: break hakari Signed-off-by: iGxnon --- .github/workflows/pull_request.yml | 14 ++++++++++++-- workspace-hack/Cargo.toml | 1 - 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 450c265d7..43883c467 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -2,6 +2,7 @@ name: PR Checks on: pull_request: + types: [opened, synchronize, reopened] branches: [master] jobs: @@ -12,15 +13,26 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + - name: Get changed files in ci + id: changed-files-ci + uses: tj-actions/changed-files@v40 + with: + files_yaml: | + detect: + - '**/Cargo.toml' + - Cargo.lock - name: Install cargo-hakari + if: steps.changed-files-ci.outputs.detect_any_changed == 'true' uses: taiki-e/install-action@v2 with: tool: cargo-hakari - name: Hakari generate + if: steps.changed-files-ci.outputs.detect_any_changed == 'true' run: cargo hakari generate - name: Show diff run: git diff - uses: stefanzweifel/git-auto-commit-action@v4 + if: steps.changed-files-ci.outputs.detect_any_changed == 'true' with: commit_message: "chore: fix workspace-hack (automated by GHA)" commit_options: "--no-verify --signoff" @@ -28,8 +40,6 @@ jobs: build-env: runs-on: ubuntu-latest name: Try to build env - permissions: - packages: write steps: - uses: actions/checkout@v4 - name: Get changed files in ci diff --git a/workspace-hack/Cargo.toml b/workspace-hack/Cargo.toml index 488ad583b..72766361f 100644 --- a/workspace-hack/Cargo.toml +++ b/workspace-hack/Cargo.toml @@ -13,7 +13,6 @@ publish = false ### BEGIN HAKARI SECTION [dependencies] -bytes = { version = "1" } clap = { version = "4", features = ["derive", "string"] } clap_builder = { version = "4", default-features = false, features = ["color", "help", "std", "string", "suggestions", "usage"] } crypto-common = { version = "0.1", default-features = false, features = ["std"] }