Skip to content

Commit

Permalink
fix: set persist-credential to false and provide PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Aug 8, 2024
1 parent c825f0f commit b0a7860
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
persist-credential: false

- name: Set up Go
uses: actions/setup-go@v3
Expand Down Expand Up @@ -57,12 +57,14 @@ jobs:
echo -e "## $new_version\n\n* [Full Changelog](https://github.com/PostHog/posthog-go/compare/v${current_version}...v${new_version})\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
- name: Commit and push changes
env:
PAT: ${{ secrets.PAT_WITH_PUSH_ACCESS }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add version.go CHANGELOG.md
git commit -m "Bump version to ${{ steps.bump-version.outputs.new_version }}"
git push
git push https://$PAT@github.com/${{ github.repository }}.git HEAD:master
- name: Create tag
run: |
Expand Down

0 comments on commit b0a7860

Please sign in to comment.