From c76a010b48b4bb02d7a3ba47099773efc60349bc Mon Sep 17 00:00:00 2001 From: Marek Siarkowicz Date: Sun, 24 Apr 2022 15:23:45 +0200 Subject: [PATCH 1/2] scripts: Add tests for release scripts --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ scripts/release | 20 ++++++++++++++------ 2 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000000..38baebd570c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +name: Release +on: [push, pull_request] +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: "1.16.15" + - run: | + git config --global user.email "github-action@etcd.io" + git config --global user.name "Github Action" + gpg --batch --gen-key < Date: Tue, 26 Apr 2022 15:42:45 +0200 Subject: [PATCH 2/2] Make DRY_RUN explicit --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 38baebd570c..2c812caa7d6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,4 +21,4 @@ jobs: Name-Email: github-action@etcd.io Expire-Date: 0 EOF - BRANCH=release-3.5 ./scripts/release --no-upload --no-docker-push 3.5.99 + DRY_RUN=true BRANCH=release-3.5 ./scripts/release --no-upload --no-docker-push 3.5.99