File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ on: # zizmor: ignore[dangerous-triggers]
55 workflows : [update and build]
66 types : [completed]
77
8- permissions : {}
9-
108jobs :
119 lint :
10+ if : github.event.workflow_run.conclusion == 'success'
1211 runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
1314 strategy :
1415 fail-fast : false
1516 matrix :
2829 - run : sphinx-lint
2930
3031 lint-epub :
32+ if : github.event.workflow_run.conclusion == 'success'
3133 runs-on : ubuntu-latest
34+ permissions :
35+ actions : read
3236 strategy :
3337 matrix :
3438 version : [3.15, 3.14]
4145 - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
4246 with :
4347 name : build-${{ matrix.version }}-epub
48+ run-id : ${{ github.event.workflow_run.id }}
49+ github-token : ${{ secrets.GITHUB_TOKEN }}
4450 - run : uvx epubcheck
Original file line number Diff line number Diff line change 6666 if : env.SIGNIFICANT_CHANGES
6767 - name : Push commit
6868 uses : ad-m/github-push-action@881a6320fdb16eb5318c5054f31c218aec2b324c # v1.3.0
69- if : env.SIGNIFICANT_CHANGES
69+ if : env.SIGNIFICANT_CHANGES && (github.event.workflow_run.head_branch == github.event.repository.default_branch)
7070 with :
7171 branch : ${{ matrix.version }}
7272 github_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments