From 6811fc8977347a1342154fc839c47b56933f5afd Mon Sep 17 00:00:00 2001 From: Stojan Dimitrovski Date: Sat, 11 Jan 2025 14:11:05 +0100 Subject: [PATCH] ci: fix dogfooding check (#1910) Fixes a minor issue with the dogfooding check. GitHub Actions never work from the first time. --- .github/workflows/dogfooding.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dogfooding.yml b/.github/workflows/dogfooding.yml index f1936e3b04..a318e9d401 100644 --- a/.github/workflows/dogfooding.yml +++ b/.github/workflows/dogfooding.yml @@ -17,13 +17,14 @@ jobs: - uses: actions/checkout@v4 if: github.event.pull_request.base.ref == 'master' && github.event.pull_request.head.ref == 'release-please--branches--master' with: - branch: master # used to identify the current RC version via git describe --tags --exclude rc* + ref: master # used to identify the current RC version via git describe --tags --exclude rc* + fetch-depth: 0 - if: github.event.pull_request.base.ref == 'master' && github.event.pull_request.head.ref == 'release-please--branches--master' run: | set -ex - MAIN_RELEASE_VERSION=$(node -e "console.log('${{ steps.release.outputs.pr && fromJSON(steps.release.outputs.pr).title }}'.split(' ').reverse().find(x => x.match(/[0-9]+[.][0-9]+[.][0-9]+/)))") + MAIN_RELEASE_VERSION=$(node -e "console.log('${{ github.event.pull_request.title }}'.split(' ').reverse().find(x => x.match(/[0-9]+[.][0-9]+[.][0-9]+/)))") RELEASE_VERSION=$MAIN_RELEASE_VERSION-rc.$(node -e "console.log('$(git describe --tags --exclude rc*)'.split('-')[1])") PROD_VERSION=$(curl 'https://auth.supabase.io/auth/v1/health' | jq -r .version)