Skip to content

Commit

Permalink
Merge pull request #8 from Techeer-Hogwarts/SCRUM-152--actions
Browse files Browse the repository at this point in the history
test
  • Loading branch information
printSANO authored Oct 27, 2024
2 parents 052339a + 31cb526 commit 0a19302
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
run: |
echo "PR Number: ${{ github.event.pull_request.number }}"
- name: Get PR Number for Main Branch Merge
id: get_pr_number
if: github.ref == 'refs/heads/main'
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 "::set-output name=PR_NUMBER::$PR_NUMBER"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set Docker Image Tag
run: |
if [ "${{ github.ref_name }}" == "main" ]; then
Expand Down

0 comments on commit 0a19302

Please sign in to comment.