Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to get PR ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ShocOne committed Mar 14, 2024
1 parent b833ed7 commit e4682e5
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,9 @@ jobs:
- name: Get PR ID
id: pr-id
shell: bash
# env:
# GITHUB_REF: ${{ github.ref }}
run: |
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_OUTPUT
# - name: Get PR ID
# id: pr-id-2
# shell: bash
# run: |
# PR_ID=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
# "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}" \
# | jq '.id')
# echo "PR_ID=$PR_ID" >> $GITHUB_OUTPUT
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Terraform Plan
uses: ./.github/plan
Expand Down

0 comments on commit e4682e5

Please sign in to comment.