Skip to content

Commit

Permalink
ci: use github app to commit so workflows run
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed May 7, 2024
1 parent c2af0cf commit ccf407d
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 ccf407d

Please sign in to comment.