-
-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (45 loc) · 1.25 KB
/
aws-sdk-mocks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: aws-sdk-update-mocks
on:
push:
branches:
- 'renovate/aws-sdk-go-monorepo'
permissions:
contents: write
pull-requests: read
jobs:
go-generate:
name: go-generate
runs-on: ubuntu-latest
if: github.actor == 'renovate[bot]'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- 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
- name: go-generate
run: |
go generate ./...
- name: git-commit
run: |
git config --global user.name 'ekristen-dev[bot]'
git config --global user.email '169176299+ekristen-dev[bot]@users.noreply.github.com'
git add .
git commit -a -m 'chore: update mocks'
- name: git-push
uses: ad-m/github-push-action@master
with:
github_token: ${{ steps.generate_token.outputs.token }}
branch: ${{ github.ref }}