Skip to content

Commit

Permalink
backport of commit 7125f91 (#14083)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Aug 11, 2022
1 parent f06db6d commit 77dcb97
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,18 @@ jobs:
echo "Version ${{ github.event.inputs.version }} is a prerelease, skipping update of LAST_RELEASE"
fi
- name: Remove generated files
run: |
# These generated files are only needed when building the final
# binary and should be not be present in the repository afterwards.
find . -name '*.generated.go' | xargs git rm
git status
- name: Commit post-release changes
run: |
# Display stated and unstaged diffs.
git diff --color=always HEAD
# Display staged and unstaged diffs, skipping deleted files to avoid
# cluttering the output with the generated files.
git diff --diff-filter=d --color=always HEAD
git add -A .
if ! git diff-index --quiet HEAD --; then
git commit --message 'Prepare for next release'
Expand Down

0 comments on commit 77dcb97

Please sign in to comment.