From f2b6be8fd3fbbbbc83f4995fec795d470d7588c9 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sun, 12 May 2024 11:25:13 -0700 Subject: [PATCH 1/3] Revert "ci: Bug fix: empty check was missing $" This reverts commit 9fa26892fdd5f431d20519b416519fbc909e6740. --- .github/workflows/release-plz.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 3bd5916e2..b4986952b 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -26,11 +26,8 @@ jobs: # List all opened PRs which head branch starts with "release-plz-" release_pr=$(gh pr list --state='open' --json number,headRefName --jq '.[] | select(.headRefName | startswith("release-plz-")) | .number') # Close the release PR if there is one - if [[ -n "$release_pr" ]]; then - echo "Closing old release PR $release_pr" + if [[ -n "release_pr" ]]; then gh pr close $release_pr - else - echo "No open release PR" fi env: GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_PAT }} From c17b8244089b00ec286921215d5f5acf965f6939 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sun, 12 May 2024 11:25:14 -0700 Subject: [PATCH 2/3] Revert "ci: Close-old-PR step needs GitHub token" This reverts commit 8d18f1a7bdf60f0f0bd4ed0143de469c9e87bc5d. --- .github/workflows/release-plz.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index b4986952b..65e7b9a60 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -29,8 +29,6 @@ jobs: if [[ -n "release_pr" ]]; then gh pr close $release_pr fi - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_PAT }} - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 env: From 5f44a2c3ed5404aae25d5c4e2b439c6789efdd21 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Sun, 12 May 2024 11:25:15 -0700 Subject: [PATCH 3/3] Revert "ci: Clean up old release PR before creating a new one" This reverts commit ea2907fb9b9887dba02bab312d7c421f448271a3. --- .github/workflows/release-plz.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/release-plz.yml b/.github/workflows/release-plz.yml index 65e7b9a60..529198600 100644 --- a/.github/workflows/release-plz.yml +++ b/.github/workflows/release-plz.yml @@ -21,14 +21,6 @@ jobs: toolchain: nightly override: true profile: minimal - - name: Close old release PR - run: | - # List all opened PRs which head branch starts with "release-plz-" - release_pr=$(gh pr list --state='open' --json number,headRefName --jq '.[] | select(.headRefName | startswith("release-plz-")) | .number') - # Close the release PR if there is one - if [[ -n "release_pr" ]]; then - gh pr close $release_pr - fi - name: Run release-plz uses: MarcoIeni/release-plz-action@v0.5 env: