Skip to content

Commit

Permalink
Use PAT on checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
tobibodamer authored Oct 1, 2024
1 parent a49a78e commit 7815dc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.ACTIONS_TOKEN }}
ref: ${{ env.BRANCH }} # Don't use the github.ref branch which correspond to the tag, because we will edit the env.BRANCH.
fetch-depth: 0 # Get the tags

Expand All @@ -44,7 +45,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Bump version to ${{ github.ref_name }}"
git push https://x-access-token:${{ secrets.ACTIONS_TOKEN }}@github.com/Bowhza/H2M-Launcher.git origin "${{ env.BRANCH }}"
git push origin "${{ env.BRANCH }}"
- name: Force update the tag
run: |
Expand Down

0 comments on commit 7815dc1

Please sign in to comment.