-
Notifications
You must be signed in to change notification settings - Fork 27
31 lines (29 loc) · 902 Bytes
/
vendor_gardener.yaml
File metadata and controls
31 lines (29 loc) · 902 Bytes
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
name: Vendor Gardener
on:
push:
branches:
- dependabot/go_modules/github.com/gardener/**
permissions: write-all
jobs:
run:
name: Run make tidy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Make tidy
run: make tidy
- name: Commit changes
run: |
# Exit early if there is nothing to commit. This can happen if someone pushes to the dependabot's PR (for example has to adapt to a breaking change).
if [[ -z $(git status --porcelain) ]]; then
echo "Nothing to commit, working tree clean. Exiting..."
exit 0
fi
git config user.name gardener-robot-ci-1
git config user.email gardener.ci.user@gmail.com
git add .
git commit -m "[dependabot skip] make tidy"
git push origin