Skip to content

Commit

Permalink
Push a commit using the built-in token
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jun 25, 2024
1 parent e816292 commit e2ded72
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand All @@ -34,12 +37,8 @@ jobs:
if: github.ref == 'refs/heads/source'
run: |
cd build
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m 'Reflect changed sources'
git push -f origin master
env:
GIT_COMMITTER_NAME: willnet
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: willnet
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
git push --set-upstream origin master

0 comments on commit e2ded72

Please sign in to comment.