Skip to content

Commit

Permalink
Merge pull request #147 from ekristen/workflow-aws-sdk-mocks
Browse files Browse the repository at this point in the history
ci: add workflow to automatically update mocks
  • Loading branch information
ekristen authored Apr 18, 2024
2 parents 2ef5eef + c42915d commit cf36d73
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"depNameTemplate": "golang",
"datasourceTemplate": "docker"
}
]
],
"gitIgnoredAuthors": ["[email protected]"]
}
35 changes: 35 additions & 0 deletions .github/workflows/aws-sdk-mocks.yml
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

0 comments on commit cf36d73

Please sign in to comment.