Skip to content

Commit

Permalink
define git user.name/email in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed May 3, 2024
1 parent 8f747f9 commit b51b78b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ name: Render README
jobs:
render:
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Render README
runs-on: ubuntu-latest
steps:
Expand All @@ -34,5 +34,7 @@ jobs:
AIRTABLE_ID: ${{ secrets.AIRTABLE_ID }}
- name: Commit results
run: |
git config user.name "Github Actions"
git config user.email "github-actions@github.com"
git commit README.md -m 'Re-build README.Rmd' || echo "No changes to commit"
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:${{ github.ref }} || echo "No changes to commit"

0 comments on commit b51b78b

Please sign in to comment.