Skip to content

Commit e6193f4

Browse files
committed
feat: skip testing and deployment
1 parent d51e69d commit e6193f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ jobs:
113113
if: ${{ steps.detect-base-image-changes.outputs.BASE_IMAGE_CHANGE == 'true' || github.ref == 'refs/heads/main' }}
114114
continue-on-error: false
115115
run: |
116-
PR_NUM_TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/pull\/\([0-9]*\)\/merge/\1/')
116+
PR_INFO=$(gh api repos/${{ github.repository }}/commits/${COMMIT_SHA}/pulls --jq '.[0] | {number: .number, branch: .head.ref}')
117+
118+
PR_NUM_TAG=$(echo "$PR_INFO" | jq -r '.number')
117119
SHORT_COMMIT_HASH=$(git rev-parse --short ${GITHUB_SHA})
118120
119121
docker build -f Dockerfile.dotnet.base -t cohort-manager-dotnet-base:latest .

0 commit comments

Comments
 (0)