Skip to content

Commit

Permalink
Update pr-jira-validation.yaml
Browse files Browse the repository at this point in the history
change the 
env:
      GH_TOKEN: ${{ github.token }} 

location
  • Loading branch information
Shimiazoulai authored Dec 3, 2024
1 parent 9a99406 commit 1e9da97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-jira-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ on:
jobs:
validate:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -29,6 +27,8 @@ jobs:

- name: Get branch creation event
id: get_branch_creation_event
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "repo - ${{ github.repository }}"
BRANCH_CREATION_EVENT=$(gh api -H "Accept: application/vnd.github.v3+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/${{ github.repository }}/activity | jq -c '[.[] | select(.type == "CreateEvent" and .payload.ref == "refs/heads/${{ env.branch }}")] | .[0]')
Expand Down

0 comments on commit 1e9da97

Please sign in to comment.