From 7109533e9c9e304cb7ef6cbc9f342b92182a3e32 Mon Sep 17 00:00:00 2001 From: knative-automation Date: Fri, 7 May 2021 09:14:10 -0700 Subject: [PATCH] Update actions (#1303) Signed-off-by: Knative Automation --- .github/workflows/knative-releasability.yaml | 22 ++++++-------------- .github/workflows/knative-release-notes.yaml | 2 +- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/knative-releasability.yaml b/.github/workflows/knative-releasability.yaml index 5a30c913f..c4f5fb732 100644 --- a/.github/workflows/knative-releasability.yaml +++ b/.github/workflows/knative-releasability.yaml @@ -36,8 +36,8 @@ jobs: env: ######################################### # Update this section each release. # - RELEASE: 'v0.22' - SLACK_CHANNEL: 'release-22' + RELEASE: 'v0.23' + SLACK_CHANNEL: 'release-23' ######################################### steps: @@ -110,25 +110,15 @@ jobs: # If we don't run `git status` before the "git diff-index" it seems # to list every file that's been touched by codegen. git status - FOUND_DIFF=0 - for x in $(git diff-index --name-only HEAD --); do - 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 + + CHANGED="$(git diff-index --name-only HEAD --)" # 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 else echo "VERIFY_MESSAGE=${{ github.repository }} is out of date." >> $GITHUB_ENV + echo "The following files are changed: $CHANGED" echo 'current=false' >> $GITHUB_ENV fi diff --git a/.github/workflows/knative-release-notes.yaml b/.github/workflows/knative-release-notes.yaml index 517f429bc..172eb390c 100644 --- a/.github/workflows/knative-release-notes.yaml +++ b/.github/workflows/knative-release-notes.yaml @@ -41,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.15.x + go-version: 1.16.x - name: Install Dependencies run: GO111MODULE=on go get k8s.io/release/cmd/release-notes