diff --git a/.github/workflows/launch_events.yml b/.github/workflows/launch_events.yml index f8d7034..e37fd43 100644 --- a/.github/workflows/launch_events.yml +++ b/.github/workflows/launch_events.yml @@ -5,7 +5,6 @@ on: permissions: contents: write - actions: write jobs: generate_event_reminders: @@ -15,7 +14,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 with: - persist-credentials: true + persist-credentials: false - name: Set up Python uses: actions/setup-python@v2 @@ -41,11 +40,9 @@ jobs: run: | git add .github/workflows/reminder_*.yml git commit -m "Add event reminder workflows" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Push changes - uses: ad-m/github-push-action@v0.6.0 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main + run: | + git push https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ github.repository }} HEAD:main + env: + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}