Skip to content

Commit

Permalink
Merge pull request #165 from ekristen/ci-use-github-app
Browse files Browse the repository at this point in the history
ci: use github app to commit changes
  • Loading branch information
ekristen authored May 7, 2024
2 parents 6d2f2d2 + d2b0614 commit 6884c84
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/aws-sdk-mocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,26 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.21.x'
- name: generate-token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
revoke: true
- name: download go mods
run: |
go mod download
- run: |
- name: go-generate
run: |
go generate ./...
- run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: git-commit
run: |
git config --global user.name 'ekristen[bot]'
git config --global user.email [email protected]
git add .
git commit -a -m 'chore: update mocks'
git push
- name: git-push
uses: ad-m/github-push-action@master
with:
github_token: ${{ steps.generate_token.outputs.token }}

0 comments on commit 6884c84

Please sign in to comment.