File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
actions/submodules-checkout Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ runs:
30
30
- name : Verify SSH Connection (Optional)
31
31
if : ${{ inputs.submodules-ssh-key }}
32
32
run : |
33
- echo Branch is ${{ github.ref_name }}
33
+ echo Branch is ${{ github.event.pull_request.head.ref || github. ref_name }}
34
34
shell : bash
35
35
36
36
- name : Try checkout submodules to the same branch as main repo
37
37
if : ${{ inputs.submodules-ssh-key }}
38
38
run : |
39
- ./submodules.sh ${{ github.ref_name }}
39
+ ./submodules.sh ${{ github.event.pull_request.head.ref || github. ref_name }}
40
40
shell : bash
41
41
42
42
- name : Show main readme
Original file line number Diff line number Diff line change 37
37
run : |
38
38
echo "C ${{ github.workflow }}-${{ github.event.number || github.sha }}"
39
39
# Get the current branch or tag name
40
- REF_NAME="${{ github.ref_name }}"
40
+ REF_NAME="${{ github.event.pull_request.head.ref }}"
41
+
42
+ echo "Branch is:" $REF_NAME
41
43
42
44
# List all submodule paths
43
45
SUBMODULES=$(git submodule status | awk '{print $2}')
You can’t perform that action at this time.
0 commit comments