-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (31 loc) · 960 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: build
on: [ pull_request, push ]
jobs:
commit-checker:
runs-on: ubuntu-latest
outputs:
skip_build: ${{ steps.check.outputs.skip_build }}
steps:
- uses: actions/checkout@v4
- name: Check commit message
id: check
run: |
commit_message=$(git log -1 --pretty=%B)
echo "Commit message: $commit_message"
if [[ "$commit_message" == *"[skip ci]"* ]]; then
echo "Skipping CI..."
echo "skip_build=true" >> $GITHUB_OUTPUT
else
echo "Confirming CI..."
echo "skip_build=false" >> $GITHUB_OUTPUT
fi
build-and-summary:
needs: commit-checker
if: needs.commit-checker.outputs.skip_build == 'false'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/build_artifacts/
- name: Generate summary
uses: ./.github/actions/summary/