Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimiazoulai committed Dec 3, 2024
1 parent 85495d6 commit 345ed64
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 @@ -16,7 +16,7 @@ jobs:
validate:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
id: get_branch_creation_event
run: |
echo "repo - ${{ github.repository }}"
BRANCH_CREATION_EVENT=$(gh api -H "Accept: application/vnd.github.v3+json" /repos/${{ github.repository }}/events | jq -c '[.[] | select(.type == "CreateEvent" and .payload.ref == "${{ env.branch }}" and .payload.ref_type == "branch")] | .[0]')
BRANCH_CREATION_EVENT=$(gh api -H "Accept:application/vnd.github.v3+json" /repos/${{ github.repository }}/events | jq -c '[.[] | select(.type == "CreateEvent" and .payload.ref == "${{ env.branch }}" and .payload.ref_type == "branch")] | .[0]')
echo "branch_creation_event - $BRANCH_CREATION_EVENT"
echo "branch_creation_event=$BRANCH_CREATION_EVENT" >> $GITHUB_ENV
Expand Down

0 comments on commit 345ed64

Please sign in to comment.