Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
istarkov committed Jan 31, 2025
1 parent e4db255 commit a06cccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/submodules-checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ runs:
- name: Verify SSH Connection (Optional)
if: ${{ inputs.submodules-ssh-key }}
run: |
echo Branch is ${{ github.ref_name }}
echo Branch is ${{ github.event.pull_request.head.ref || github.ref_name }}
shell: bash

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

- name: Show main readme
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/check-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
run: |
echo "C ${{ github.workflow }}-${{ github.event.number || github.sha }}"
# Get the current branch or tag name
REF_NAME="${{ github.ref_name }}"
REF_NAME="${{ github.event.pull_request.head.ref }}"
echo "Branch is:" $REF_NAME
# List all submodule paths
SUBMODULES=$(git submodule status | awk '{print $2}')
Expand Down

0 comments on commit a06cccc

Please sign in to comment.