mirror of
https://github.com/ko-build/ko.git
synced 2025-03-26 21:12:45 +02:00
Update actions (#355)
This commit is contained in:
parent
516cdeec7d
commit
d5ec166882
22
.github/workflows/knative-releasability.yaml
vendored
22
.github/workflows/knative-releasability.yaml
vendored
@ -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
|
||||
|
||||
|
2
.github/workflows/knative-release-notes.yaml
vendored
2
.github/workflows/knative-release-notes.yaml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user