Compare commits

...
Author SHA1 Message Date
dwelle 3cf51b819f temp [skip ci] 2026-07-16 13:43:51 +02:00
dwelle 1fa8a09d46 ci(repo): add explicit list of semantic pr types 2026-07-16 13:27:05 +02:00
dwelle 41b9f9c020 ci(repo): support [skip-ci] 2026-07-16 13:27:05 +02:00
5 changed files with 64 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
name: Check CI skip marker
on:
workflow_call:
outputs:
should_run:
description: Whether CI jobs should run
value: ${{ jobs.check.outputs.should_run }}
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
outputs:
should_run: ${{ steps.commit_message.outputs.should_run }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1
- name: Check triggering commit message
id: commit_message
run: |
commit_message="$(git log -1 --format=%B)"
if [[ "${commit_message}" == *"[skip-ci]"* ]]; then
echo "should_run=false" >> "${GITHUB_OUTPUT}"
else
echo "should_run=true" >> "${GITHUB_OUTPUT}"
fi
+5
View File
@@ -3,7 +3,12 @@ name: Lint
on: pull_request
jobs:
check_ci:
uses: ./.github/workflows/check-ci.yml
lint:
needs: check_ci
if: needs.check_ci.outputs.should_run == 'true'
runs-on: ubuntu-latest
steps:
+17
View File
@@ -10,13 +10,30 @@ on:
- unlabeled
jobs:
check_ci:
uses: ./.github/workflows/check-ci.yml
semantic:
needs: check_ci
if: needs.check_ci.outputs.should_run == 'true'
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 # v5
with:
types:
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
requireScope: true
scopes: |
app
+5
View File
@@ -4,7 +4,12 @@ on:
branches:
- master
jobs:
check_ci:
uses: ./.github/workflows/check-ci.yml
size:
needs: check_ci
if: needs.check_ci.outputs.should_run == 'true'
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
+5
View File
@@ -3,7 +3,12 @@ on:
pull_request:
jobs:
check_ci:
uses: ./.github/workflows/check-ci.yml
coverage:
needs: check_ci
if: needs.check_ci.outputs.should_run == 'true'
runs-on: ubuntu-latest
permissions:
contents: read