From 4bc43f995ab3689b71c7c5810384e96c7ed3b28c Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Fri, 16 Aug 2024 10:30:34 +0000 Subject: [PATCH 1/2] ci: remove release output --- .github/workflows/ci.yml | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0dadb4bf..b374e36b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,25 +52,6 @@ jobs: id: release with: target-branch: ${{ github.ref_name }} - - - if: ${{ steps.release.outputs }} - id: versions - run: | - set -ex - - MAIN_RELEASE_VERSION=${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} - RELEASE_VERSION="$MAIN_RELEASE_VERSION" - RELEASE_NAME="v$RELEASE_VERSION" - RELEASE_CREATED='${{ steps.release.outputs.release_created }}' - PRS_CREATED='${{ steps.release.outputs.prs_created }}' - PR_TITLE='${{ github.event.head_commit.message }}' - - echo "MAIN_RELEASE_VERSION=${MAIN_RELEASE_VERSION}" >> "${GITHUB_OUTPUT}" - echo "RELEASE_VERSION=${RELEASE_VERSION}" >> "${GITHUB_OUTPUT}" - echo "RELEASE_CREATED=${RELEASE_CREATED}" >> "${GITHUB_OUTPUT}" - echo "RELEASE_NAME=${RELEASE_NAME}" >> "${GITHUB_OUTPUT}" - echo "PRS_CREATED=${PRS_CREATED}" >> "${GITHUB_OUTPUT}" - echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_OUTPUT}" publish: needs: release-please if: ${{ startsWith(github.event.head_commit.message, 'chore(main)') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }} From c612b599293ed12ab3f90d7fc81d1d2dee5777f1 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Fri, 16 Aug 2024 10:34:13 +0000 Subject: [PATCH 2/2] ci: constrain release-please to only pushes on main branch --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b374e36b..f13d6c24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: make tests_only release-please: needs: test + if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase' }} runs-on: ubuntu-latest name: "Bump version and create changelog" permissions: