Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release notes job #1214

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
publish:
name: release
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
Expand All @@ -30,8 +30,7 @@ jobs:
fetch-depth: 0
path: src/github.com/kubernetes-sigs/cri-tools
- run: |
make release-notes
make release
make release-notes release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: src/github.com/kubernetes-sigs/cri-tools
Expand Down
9 changes: 5 additions & 4 deletions hack/release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@

set -euo pipefail

BINARY=./build/release-notes
BUILD_DIR=build
BINARY=$BUILD_DIR/release-notes
VERSION=v0.15.1

curl -sSfL -o $BINARY \
mkdir -p $BUILD_DIR
curl -sSfL --retry 5 --retry-delay 10 -o $BINARY \
https://github.com/kubernetes/release/releases/download/$VERSION/release-notes-linux-amd64
chmod +x $BINARY

$BINARY \
--discover minor-to-minor \
--discover patch-to-patch \
--org kubernetes-sigs \
--repo cri-tools \
--required-author "" \
--dependencies=false \
--output release-notes.md
Loading