Skip to content

Commit 94d9757

Browse files
committed
[ci] Adapting pulls depending on the originating event
[skip ci]
1 parent d230cb8 commit 94d9757

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/bazel.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ jobs:
8383
- name: Checkout source tree
8484
uses: actions/checkout@v4
8585
- name: Show current branch
86-
run: echo '${{ github.head_ref }}'
87-
- name: Pull latest changes
88-
if: startsWith(github.head_ref, 'renovate/')
86+
run: |
87+
echo "head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}"
88+
shell: bash
89+
- name: Pull latest changes from head ref for PRs
90+
if: contains(github.head_ref, 'renovate/')
8991
run: git pull origin ${{ github.head_ref }}
92+
- name: Pull latest changes from ref for branch pushes
93+
if: contains(github.ref, 'renovate/')
94+
run: git pull origin ${{ github.ref }}
9095
- name: Free space
9196
if: inputs.os != 'windows'
9297
run: ./scripts/github-actions/free-disk-space.sh

0 commit comments

Comments
 (0)