Skip to content

Commit a2f3666

Browse files
committed
feat: devtest using pr number as image identifier
1 parent c8108c6 commit a2f3666

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/stage-3-build-images-devtest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
GH_TOKEN: ${{ github.token }}
6666
run: |
6767
# Find the PR associated with the current commit SHA
68-
PR_NUM_TAG=$(gh pr list --sha ${{ github.sha }} --state all --json number --jq '.[0].number')
68+
PR_NUM_TAG=$(gh api repos/${{ github.repository }}/commits/${{ github.sha }}/pulls --jq '.[0].number')
6969
7070
if [ -z "$PR_NUM_TAG" ]; then
7171
echo "No PR found for this tag push."
@@ -114,6 +114,7 @@ jobs:
114114
pull-requests: read
115115
id-token: write
116116
packages: write
117+
needs: [get-functions, get-pr-number]
117118
outputs:
118119
DOTNET_BASE_IMAGE: ${{ steps.set-image-tags.outputs.DOTNET_BASE_IMAGE }}
119120
FUNCTION_BASE_IMAGE: ${{ steps.set-image-tags.outputs.FUNCTION_BASE_IMAGE }}

0 commit comments

Comments
 (0)