From 5fc7dd2bff3cb657227ebb6721824340c1b327a1 Mon Sep 17 00:00:00 2001 From: Ismoh Date: Fri, 1 Jul 2022 12:30:03 +0200 Subject: [PATCH] #42 Using curl for fetching issue labels --- .github/workflows/version.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 000a1d8b4..a1033761f 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -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" \ No newline at end of file + #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 +