Skip to content

Commit fd3b852

Browse files
committed
Update commit sha refs
1 parent 19ce8a9 commit fd3b852

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/test-pr.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
needs: [fail_on_remote]
3030
uses: ./.github/workflows/build-push-images.yml
3131
with:
32-
ref: ${{ github.event.pull_request.head.sha }}
32+
ref: ${{ github.sha }}
3333
secrets: inherit
3434

3535
chart_validation:
@@ -42,11 +42,11 @@ jobs:
4242
- name: Checkout the repo
4343
uses: actions/checkout@v4
4444
with:
45-
ref: ${{ github.event.pull_request.head.sha }}
45+
ref: ${{ github.sha }}
4646

4747
- name: Run Gradio app tests
4848
run: |
49-
./test-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }})
49+
./test-images.sh $(git rev-parse --short ${{ github.sha }})
5050
working-directory: web-apps
5151

5252
- name: Install Helm
@@ -71,9 +71,16 @@ jobs:
7171
# we need to pull these published images and load them into the kind cluster
7272
# with the tag correct tag.
7373
- name: Load tagged container images into kind cluster
74-
run: ./kind-images.sh $(git rev-parse --short ${{ github.event.pull_request.head.sha }}) ${{ env.CLUSTER_NAME }}
74+
run: ./kind-images.sh $(git rev-parse --short ${{ github.sha }}) ${{ env.CLUSTER_NAME }}
7575
working-directory: web-apps
7676

77+
# TODO: Remove me
78+
- name: Setup upterm session
79+
uses: lhotari/action-upterm@v1
80+
with:
81+
## limits ssh access and adds the ssh public key for the user which triggered the workflow
82+
limit-access-to-actor: true
83+
7784
# https://github.com/helm/charts/blob/master/test/README.md#providing-custom-test-values
7885
# Each chart/ci/*-values.yaml file will be treated as a separate test case with it's
7986
# own helm install/test process.
@@ -84,5 +91,5 @@ jobs:
8491
needs: [chart_validation]
8592
uses: ./.github/workflows/build-push-charts.yml
8693
with:
87-
ref: ${{ github.event.pull_request.head.sha }}
94+
ref: ${{ github.sha }}
8895
secrets: inherit

0 commit comments

Comments
 (0)