Skip to content

Commit a06cccc

Browse files
committed
Check
1 parent e4db255 commit a06cccc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/actions/submodules-checkout/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ runs:
3030
- name: Verify SSH Connection (Optional)
3131
if: ${{ inputs.submodules-ssh-key }}
3232
run: |
33-
echo Branch is ${{ github.ref_name }}
33+
echo Branch is ${{ github.event.pull_request.head.ref || github.ref_name }}
3434
shell: bash
3535

3636
- name: Try checkout submodules to the same branch as main repo
3737
if: ${{ inputs.submodules-ssh-key }}
3838
run: |
39-
./submodules.sh ${{ github.ref_name }}
39+
./submodules.sh ${{ github.event.pull_request.head.ref || github.ref_name }}
4040
shell: bash
4141

4242
- name: Show main readme

.github/workflows/check-submodules.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
run: |
3838
echo "C ${{ github.workflow }}-${{ github.event.number || github.sha }}"
3939
# 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
4143
4244
# List all submodule paths
4345
SUBMODULES=$(git submodule status | awk '{print $2}')

0 commit comments

Comments
 (0)