Skip to content

Commit

Permalink
Update workflow git push with token
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeldman committed Apr 29, 2024
1 parent 840afeb commit 422b3e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
- name: Test
run: |
ls -l
env
date > date.txt
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add date.txt
git commit -m "Update date"
git push --set-upstream https://${GITHUB_TOKEN}@github.com/dfeldman/quackernews.git main
git push --set-upstream https://${{ secrets.GH_TOKEN }}@github.com/dfeldman/quackernews.git main
- name: Run Script to Generate Content
Expand All @@ -37,4 +38,4 @@ jobs:
git config --local user.name "GitHub Action"
git add -A
git commit -m "Regenerate site" || echo "No changes to commit."
git push --set-upstream https://${GITHUB_TOKEN}@github.com/dfeldman/quackernews.git main
git push --set-upstream https://${{ secrets.GH_TOKEN }}@github.com/dfeldman/quackernews.git main

0 comments on commit 422b3e8

Please sign in to comment.