File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 6
6
tags :
7
7
- ' v*'
8
8
- ' release-*'
9
+ pull_request :
10
+ types : [labeled]
9
11
workflow_dispatch :
10
12
inputs :
11
13
ref :
@@ -31,12 +33,16 @@ permissions:
31
33
jobs :
32
34
build :
33
35
runs-on : buildjet-16vcpu-ubuntu-2204
36
+ # Only run if it's not a PR event, or if it's a PR with the movement-docker-build label
37
+ if : |
38
+ github.event_name != 'pull_request' ||
39
+ (github.event_name == 'pull_request' && github.event.label.name == 'movement-docker-build')
34
40
steps :
35
41
- uses : actions/checkout@v3
36
42
with :
37
43
fetch-depth : 0 # Fetch all history
38
- # Use ref input if provided (manual trigger), otherwise GIT_SHA (backward compat), otherwise github.ref (push trigger)
39
- ref : ${{ inputs.ref || inputs.GIT_SHA || github.ref }}
44
+ # For PRs, checkout the PR branch; for manual triggers use provided ref; otherwise use github.ref
45
+ ref : ${{ github.event.pull_request.head.sha || inputs.ref || inputs.GIT_SHA || github.ref }}
40
46
token : ${{ secrets.GH_PAT }} # Use PAT for checkout
41
47
42
48
- name : Set up Docker Buildx
70
76
echo " PROFILE: $PROFILE"
71
77
echo " FEATURES: $FEATURES"
72
78
echo " Git SHA: $(git rev-parse HEAD)"
73
- echo " Git Branch/Tag : $(git rev-parse --abbrev-ref HEAD) "
79
+ echo " Event : ${{ github.event_name }} "
74
80
75
81
docker/builder/docker-bake-rust-all.sh
You can’t perform that action at this time.
0 commit comments