File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 21
21
- README.md
22
22
23
23
jobs :
24
-
25
- short-circuit :
26
- runs-on : ubuntu-latest
27
- outputs :
28
- should_skip : ${{ steps.check.outputs.should_skip }}
29
- steps :
30
- - name : Check if workflow should be skipped
31
- id : check
32
- run : |
33
- echo "Commit message: ${{ github.event.head_commit.message }}"
34
- echo "Actor: ${{ github.actor }}"
35
-
36
- # Check for [skip ci] in commit message or actor
37
- if [[ "${{ github.actor }}" == "auto-pusher" ]] || [[ "${{ github.event.head_commit.message }}" == *"[skip ci]"* ]]; then
38
- echo "should_skip=true" >> $GITHUB_OUTPUT
39
- else
40
- echo "should_skip=false" >> $GITHUB_OUTPUT
41
- fi
42
-
43
24
build-artifacts :
44
25
runs-on : ubuntu-22.04
45
- if : needs.short-circuit.outputs.should_skip == 'false'
46
26
47
27
steps :
48
28
- name : Checkout
49
29
uses : actions/checkout@v4
50
30
with :
51
31
ref : ' master'
52
- token : ${{ secrets.GH_ACCESS_TOKEN }}
53
32
54
33
- name : Setup Hugo (Extended)
55
34
uses : peaceiris/actions-hugo@v2
83
62
84
63
- uses : stefanzweifel/git-auto-commit-action@v5
85
64
with :
86
- commit_message : " Build Academy [skip ci] "
65
+ commit_message : Build Academy
87
66
commit_options : ' --signoff'
88
67
branch : master
89
68
commit_user_name : l5io
You can’t perform that action at this time.
0 commit comments