fix(ci): Do not retrigger CI for commits performed by tag / nix-update job

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2025-01-04 14:46:47 +01:00
parent 9ac5bfbf37
commit eeff39bf7b
2 changed files with 6 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ permissions:
jobs:
build:
name: Build for ${{ matrix.target_os }} on ${{ matrix.target_arch }}${{ matrix.target_arch == 'arm' && format('-v{0}', matrix.arm) || ''}}${{ matrix.target_arch == 'mips' && format('-{0}', matrix.mips) || ''}}
if: github.event.head_commit.committer.name != 'github-actions[bot]' # Skip builds triggered by GitHub Actions, e.g. the tagging job below
runs-on: ${{ matrix.runner || 'ubuntu-24.04' }}
strategy:
@@ -212,8 +213,8 @@ jobs:
- name: Setup Git
run: |
git config --global user.name 'Steffen Vogel'
git config --global user.email 'post@steffenvogel.de'
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Get current and next tag
id: tags

View File

@@ -17,11 +17,14 @@ concurrency:
jobs:
reuse:
if: github.event.head_commit.committer.name != 'github-actions[bot]' # Skip builds triggered by GitHub Actions, e.g. the tagging job below
uses: cunicu/.github/.github/workflows/reuse.yaml@v0.3.0
flake:
name: Check flake.lock
runs-on: ubuntu-24.04
if: github.event.head_commit.committer.name != 'github-actions[bot]' # Skip builds triggered by GitHub Actions, e.g. the tagging job below
steps:
- name: Checkout
uses: actions/checkout@v4