File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed
Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: build
22on :
33 workflow_call :
44 inputs :
5+ ref :
6+ required : false
7+ type : string
8+ default : " "
59 push-image :
610 required : false
711 type : boolean
2125 packages : write
2226 steps :
2327 - uses : actions/checkout@v4
28+ with :
29+ ref : ${{ inputs.ref || github.ref }}
2430 - uses : nixbuild/nix-quick-install-action@v34
2531 with :
2632 nix_conf : |
Original file line number Diff line number Diff line change 1+ name : pr-unlabel
2+ on :
3+ pull_request_target :
4+ types : [synchronize]
5+ branches :
6+ - main
7+ jobs :
8+ remove-safe-label :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Remove safe-to-build label
12+ run : gh pr edit ${{ github.event.pull_request.number }} --remove-label "safe-to-build" --repo ${{ github.repository }}
13+ env :
14+ GH_TOKEN : ${{ github.token }}
15+ continue-on-error : true
Original file line number Diff line number Diff line change 11name : pr
22on :
3- pull_request :
3+ pull_request_target :
4+ types : [labeled]
45 branches :
56 - main
67jobs :
78 check-pr :
9+ if : github.event.label.name == 'safe-to-build'
810 uses : ./.github/workflows/build.yaml
911 with :
12+ ref : ${{ github.event.pull_request.head.sha }}
1013 push-image : false
1114 create-release : false
You can’t perform that action at this time.
0 commit comments