Skip to content

Commit

Permalink
Try using github.token in action
Browse files Browse the repository at this point in the history
  • Loading branch information
Mandrenkov committed Oct 27, 2023
1 parent 0193efa commit f9c4f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions generate-docker-image-tags/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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"
Expand Down

0 comments on commit f9c4f38

Please sign in to comment.