Skip to content

Commit

Permalink
fix: add PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhoJJang authored Aug 8, 2024
1 parent 7dc09f0 commit 2d3f1db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nextjs-prod-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0 # This is important to fetch all history for all tags and branches

- name: Get latest tag
id: get_latest_tag
Expand All @@ -40,11 +40,13 @@ jobs:
echo "NEW_TAG=$new_tag" >> $GITHUB_OUTPUT
- name: Create and push new tag
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
run: |
git config user.name github-actions
git config user.email [email protected]
git tag ${{ steps.bump_version.outputs.NEW_TAG }}
git push origin ${{ steps.bump_version.outputs.NEW_TAG }}
git push https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git ${{ steps.bump_version.outputs.NEW_TAG }}
- name: Set up environment variables
run: |
Expand Down

0 comments on commit 2d3f1db

Please sign in to comment.