From f9c4f383f0ec854f46e5f46930e07a1d92b858f1 Mon Sep 17 00:00:00 2001 From: Mikhail Andrenkov Date: Fri, 27 Oct 2023 17:01:20 -0400 Subject: [PATCH] Try using `github.token` in action --- .github/workflows/test.yml | 1 - generate-docker-image-tags/action.yml | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a7a38d6..ff9776b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,6 @@ jobs: id: tags uses: ./generate-docker-image-tags with: - github-token: ${{ secrets.GITHUB_TOKEN }} shortcut-api-token: "Some Invalid Token" - name: Display Tags diff --git a/generate-docker-image-tags/action.yml b/generate-docker-image-tags/action.yml index 4190ba4..05df337 100644 --- a/generate-docker-image-tags/action.yml +++ b/generate-docker-image-tags/action.yml @@ -58,9 +58,9 @@ runs: - id: get-pr-number shell: bash - if: ${{ inputs.github-token && inputs.shortcut-api-token }} + if: inputs.shortcut-api-token env: - GITHUB_TOKEN: ${{ inputs.github-token }} + GITHUB_TOKEN: ${{ github.token }} run: | PR_NUMBER=$( gh api \ @@ -75,7 +75,7 @@ runs: - id: get-story-tags shell: bash - if: ${{ inputs.github-token && inputs.shortcut-api-token }} + if: inputs.shortcut-api-token run: | PR_NUMBER=${{ steps.get-pr-number.outputs.pr-number }} url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/$PR_NUMBER"