Skip to content

Commit 237f4fc

Browse files
committed
Use ref according to github docs
1 parent 6025ec4 commit 237f4fc

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/testing-farm.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
- name: Checkout repository
2020
uses: actions/checkout@v4
2121
with:
22-
ref: "refs/pull/${{ github.event.issue.number }}/head"
23-
22+
ref: ${{ github.event.pull_request.head.sha }}
2423
- name: Test init on Fedora VM
2524
uses: sclorg/testing-farm-as-github-action@main
2625
with:
@@ -31,6 +30,7 @@ jobs:
3130
pull_request_status_name: "Fedora init test"
3231
update_pull_request_status: "true"
3332
create_github_summary: "true"
33+
variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};REPO_NAME=${{ github.repository }};PR_NUMBER=${{ github.event.issue.number }};"
3434
test-upgrade:
3535
runs-on: ubuntu-latest
3636

@@ -43,7 +43,7 @@ jobs:
4343
- name: Checkout repository
4444
uses: actions/checkout@v4
4545
with:
46-
ref: "refs/pull/${{ github.event.issue.number }}/head"
46+
ref: ${{ github.event.pull_request.head.sha }}
4747

4848
- name: Test upgrade on Fedora VM
4949
uses: sclorg/testing-farm-as-github-action@main
@@ -55,6 +55,7 @@ jobs:
5555
pull_request_status_name: "Fedora upgrade test"
5656
update_pull_request_status: "true"
5757
create_github_summary: "true"
58+
variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};REPO_NAME=${{ github.repository }};PR_NUMBER=${{ github.event.issue.number }};"
5859
container-test-init:
5960
runs-on: ubuntu-latest
6061

@@ -66,6 +67,8 @@ jobs:
6667
steps:
6768
- name: Checkout repository
6869
uses: actions/checkout@v4
70+
with:
71+
ref: ${{ github.event.pull_request.head.sha }}
6972

7073
- name: Test init on Fedora container
7174
uses: sclorg/testing-farm-as-github-action@main
@@ -77,6 +80,7 @@ jobs:
7780
pull_request_status_name: "Fedora container init test"
7881
update_pull_request_status: "true"
7982
create_github_summary: "true"
83+
variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};REPO_NAME=${{ github.repository }};PR_NUMBER=${{ github.event.issue.number }};"
8084
container-test-upgrade:
8185
runs-on: ubuntu-latest
8286

@@ -88,7 +92,9 @@ jobs:
8892
steps:
8993
- name: Checkout repository
9094
uses: actions/checkout@v4
91-
95+
with:
96+
ref: ${{ github.event.pull_request.head.sha }}
97+
9298
- name: Test upgrade on Fedora container
9399
uses: sclorg/testing-farm-as-github-action@main
94100
with:
@@ -99,5 +105,6 @@ jobs:
99105
pull_request_status_name: "Fedora container upgrade test"
100106
update_pull_request_status: "true"
101107
create_github_summary: "true"
108+
variables: "REPO_URL=${{ github.server_url }}/${{ github.repository }};REPO_NAME=${{ github.repository }};PR_NUMBER=${{ github.event.pull_request.head.sha }};"
102109

103110

0 commit comments

Comments
 (0)