Update actions (#1303)

Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
knative-automation 2021-05-07 09:14:10 -07:00 committed by GitHub
parent ccf721f8b0
commit 7109533e9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 17 deletions

View File

@ -36,8 +36,8 @@ jobs:
env: env:
######################################### #########################################
# Update this section each release. # # Update this section each release. #
RELEASE: 'v0.22' RELEASE: 'v0.23'
SLACK_CHANNEL: 'release-22' SLACK_CHANNEL: 'release-23'
######################################### #########################################
steps: steps:
@ -110,25 +110,15 @@ jobs:
# If we don't run `git status` before the "git diff-index" it seems # If we don't run `git status` before the "git diff-index" it seems
# to list every file that's been touched by codegen. # to list every file that's been touched by codegen.
git status git status
FOUND_DIFF=0
for x in $(git diff-index --name-only HEAD --); do CHANGED="$(git diff-index --name-only HEAD --)"
if [ "$(basename $x)" = "go.mod" ]; then
continue
elif [ "$(basename $x)" = "go.sum" ]; then
continue
elif [ "$(basename $x)" = "modules.txt" ]; then
continue
fi
echo "Found non-module diff: $x"
FOUND_DIFF=1
break
done
# If we see no changes after the upgrade, then we are up to date. # If we see no changes after the upgrade, then we are up to date.
if [[ "$FOUND_DIFF" -eq "0" ]]; then if [[ "$CHANGED" == "" ]]; then
echo "VERIFY_MESSAGE=${{ github.repository }} up to date." >> $GITHUB_ENV echo "VERIFY_MESSAGE=${{ github.repository }} up to date." >> $GITHUB_ENV
else else
echo "VERIFY_MESSAGE=${{ github.repository }} is out of date." >> $GITHUB_ENV echo "VERIFY_MESSAGE=${{ github.repository }} is out of date." >> $GITHUB_ENV
echo "The following files are changed: $CHANGED"
echo 'current=false' >> $GITHUB_ENV echo 'current=false' >> $GITHUB_ENV
fi fi

View File

@ -41,7 +41,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.15.x go-version: 1.16.x
- name: Install Dependencies - name: Install Dependencies
run: GO111MODULE=on go get k8s.io/release/cmd/release-notes run: GO111MODULE=on go get k8s.io/release/cmd/release-notes