Skip to content

Commit 15afd53

Browse files
authored
fix: ci refs (#275)
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent c2ce813 commit 15afd53

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
with:
2828
language: javascript
2929
repo-url: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
30-
commit-sha: ${{ github.event.workflow_run.head_sha || github.event.pull_request.head.sha || github.sha }}
30+
commit-sha: ${{ github.event.workflow_run && github.event.workflow_run.head_sha || github.event.pull_request.head.sha || github.sha }}

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Checkout sources
3030
uses: actions/checkout@v4
3131
with:
32-
ref: ${{ github.event.workflow_run.head_sha }}
32+
ref: ${{ github.event.workflow_run.head_branch }}
3333
fetch-depth: 0
3434

3535
- name: Install node 24
@@ -47,6 +47,10 @@ jobs:
4747
git config user.name "${{ github.actor }}"
4848
git config user.email "${{ github.actor }}@users.noreply.github.com"
4949
50+
- name: Reset to workflow run commit
51+
run: |
52+
git reset --hard ${{ github.event.workflow_run.head_sha }}
53+
5054
- name: Get current version
5155
id: current-version
5256
run: |

0 commit comments

Comments
 (0)