Skip to content

Commit

Permalink
#42 Using curl for fetching issue labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismoh committed Jul 1, 2022
1 parent 077f6e1 commit 5fc7dd2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh auth logout #https://github.com/cli/cli/issues/494
gh auth login
cd ${{ github.workspace }}
gh issue view ${{ steps.links.outputs.issues }} --json "labels"
#gh auth logout #https://github.com/cli/cli/issues/494
#gh auth login
#cd ${{ github.workspace }}
#gh issue view ${{ steps.links.outputs.issues }} --json "labels"
for issueNumber in ${{ steps.links.outputs.issues }}
do
issueUrl=$( ${{event.pull_request.base.repo.issues_url}} | sed "s/{\/number}/\/123/g" )
labels=$(toJSON(curl issueUrl).labels)
done

0 comments on commit 5fc7dd2

Please sign in to comment.