Skip to content

Commit

Permalink
Merge pull request #10 from Techeer-Hogwarts/SCRUM-152--actions
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
printSANO authored Oct 27, 2024
2 parents 3b6634d + 328b58a commit 7863310
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ jobs:
run: |
PR_NUMBER=$(gh pr list --repo ${{ github.repository }} --state closed --json number,mergeCommit --jq ".[] | select(.mergeCommit.oid == \"${{ github.sha }}\") | .number")
echo "PR_NUMBER=${PR_NUMBER}"
echo "echo "PR_NUMBER"=${PR_NUMBER}" >> $GITHUB_OUTPUT
echo "PR_NUMBER"=${PR_NUMBER}" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set Docker Image Tag
env:
PR_NUMBER: ${{ steps.get_pr_number.outputs.PR_NUMBER }}
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
DOCKER_IMAGE_TAG="1.1.${{ steps.get_pr_number.outputs.PR_NUMBER }}"
DOCKER_IMAGE_TAG="1.1.$PR_NUMBER"
else
DOCKER_IMAGE_TAG="0.${{ github.event.pull_request.number }}.${{ github.run_number }}"
fi
Expand Down

0 comments on commit 7863310

Please sign in to comment.