mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
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:
5
.github/workflows/build.yaml
vendored
5
.github/workflows/build.yaml
vendored
@@ -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
|
||||
|
3
.github/workflows/check.yaml
vendored
3
.github/workflows/check.yaml
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user