make revendor #4
Workflow file for this run
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
name: Vendor Gardener | |
on: | |
push: | |
branches: | |
- dependabot/go_modules/github.com/gardener/** | |
permissions: write-all | |
jobs: | |
run: | |
name: Run make revendor | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: go.mod | |
- name: Make revendor | |
run: make revendor | |
- 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 [email protected] | |
git add . | |
git commit -m "[dependabot skip] make revendor" | |
git push origin |