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)