mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](4b73464bb3...4a3601121d)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: 6.4.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
name: Verify Generated Files
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
verify-generate:
|
|
name: Verify make gen
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: .go-version
|
|
- name: Run make gen
|
|
run: make gen
|
|
- name: Check for uncommitted changes
|
|
run: |
|
|
UNTRACKED=$(git ls-files --others --exclude-standard)
|
|
if [ -n "$UNTRACKED" ]; then
|
|
echo "ERROR: make gen produced untracked files:"
|
|
echo "$UNTRACKED"
|
|
echo ""
|
|
echo "Run 'make gen' and commit the result."
|
|
exit 1
|
|
fi
|
|
if ! git diff --exit-code; then
|
|
echo ""
|
|
echo "ERROR: Generated files are out of date."
|
|
echo "Run 'make gen' and commit the result."
|
|
exit 1
|
|
fi
|