Skip to content

Commit

Permalink
ci: skip som jobs if coming from renovate (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula authored Oct 10, 2023
1 parent c7cad4f commit 57713ef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build examples
name: Package examples

on:
pull_request:
Expand All @@ -14,7 +14,8 @@ concurrency:
cancel-in-progress: true

jobs:
test:
package:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
strategy:
fail-fast: false
matrix:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ concurrency:

jobs:
fmt:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest

steps:
Expand All @@ -33,6 +34,8 @@ jobs:
run: cargo fmt --all -- --check

clippy:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -76,4 +79,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v1
3 changes: 2 additions & 1 deletion .github/workflows/covector-status.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: covector version or publish
name: Covector Version or Publish

on:
push:
Expand All @@ -7,6 +7,7 @@ on:

jobs:
version-or-publish:
if: ${{ !startsWith(github.head_ref, 'renovate/') }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -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
Expand All @@ -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 }}
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 }}

0 comments on commit 57713ef

Please sign in to comment.