From 596d835ead78c0dd39f4d10cf5af61b95b15673e Mon Sep 17 00:00:00 2001 From: amr-crabnebula Date: Tue, 10 Oct 2023 03:03:05 +0300 Subject: [PATCH] ci: skip som jobs if coming from renovate --- .github/workflows/build-examples.yml | 5 +++-- .github/workflows/check.yml | 5 ++++- .github/workflows/covector-status.yml | 3 ++- .github/workflows/covector-version-or-publish.yml | 13 +++++++------ 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml index 52d0daf1..542d7fb7 100644 --- a/.github/workflows/build-examples.yml +++ b/.github/workflows/build-examples.yml @@ -1,4 +1,4 @@ -name: Build examples +name: Package examples on: pull_request: @@ -14,7 +14,8 @@ concurrency: cancel-in-progress: true jobs: - test: + package: + if: ${{ !startsWith(github.head_ref, 'renovate/') }} strategy: fail-fast: false matrix: diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 17e2a14a..9a42e593 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,6 +22,7 @@ concurrency: jobs: fmt: + if: ${{ !startsWith(github.head_ref, 'renovate/') }} runs-on: ubuntu-latest steps: @@ -33,6 +34,8 @@ jobs: run: cargo fmt --all -- --check clippy: + if: ${{ !startsWith(github.head_ref, 'renovate/') }} + strategy: fail-fast: false matrix: @@ -76,4 +79,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: EmbarkStudios/cargo-deny-action@v1 \ No newline at end of file + - uses: EmbarkStudios/cargo-deny-action@v1 diff --git a/.github/workflows/covector-status.yml b/.github/workflows/covector-status.yml index 5c972f6c..6fd5e47b 100644 --- a/.github/workflows/covector-status.yml +++ b/.github/workflows/covector-status.yml @@ -1,8 +1,9 @@ -name: covector status +name: Covector Status on: [pull_request] jobs: covector: + if: ${{ !startsWith(github.head_ref, 'renovate/') }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 26b7fc61..cbfb1f2c 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -1,4 +1,4 @@ -name: covector version or publish +name: Covector Version or Publish on: push: @@ -7,6 +7,7 @@ on: jobs: version-or-publish: + if: ${{ !startsWith(github.head_ref, 'renovate/') }} runs-on: ubuntu-latest permissions: contents: write @@ -34,7 +35,7 @@ jobs: id: covector with: token: ${{ secrets.GITHUB_TOKEN }} - command: 'version-or-publish' + command: "version-or-publish" createRelease: true - name: Create Pull Request With Versions Bumped @@ -43,7 +44,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} branch: release/version-updates - title: 'release: apply version updates from current changes' - commit-message: 'release: apply version updates from current changes' - labels: 'version updates' - body: ${{ steps.covector.outputs.change }} \ No newline at end of file + title: "release: apply version updates from current changes" + commit-message: "release: apply version updates from current changes" + labels: "version updates" + body: ${{ steps.covector.outputs.change }}