-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #165 from ekristen/ci-use-github-app
ci: use github app to commit changes
- Loading branch information
Showing
1 changed file
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |