-
-
Notifications
You must be signed in to change notification settings - Fork 24
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 #147 from ekristen/workflow-aws-sdk-mocks
ci: add workflow to automatically update mocks
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -30,5 +30,6 @@ | |
"depNameTemplate": "golang", | ||
"datasourceTemplate": "docker" | ||
} | ||
] | ||
], | ||
"gitIgnoredAuthors": ["[email protected]"] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: aws-sdk-update-mocks | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
branches: | ||
- renovate/aws-sdk-go-monorepo | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: read | ||
|
||
jobs: | ||
go-generate: | ||
name: go-generate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.x' | ||
- name: download go mods | ||
run: | | ||
go mod download | ||
- run: | | ||
go generate ./... | ||
- run: | | ||
git config --global user.name github-actions | ||
git config --global user.email [email protected] | ||
git add . | ||
git commit -a -m 'chore: update mocks' | ||
git push |