mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-10-20 00:16:54 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cf51b819f | ||
|
|
1fa8a09d46 | ||
|
|
41b9f9c020 |
@@ -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
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user