Skip to content

Commit

Permalink
ci: fix dogfooding check (#1910)
Browse files Browse the repository at this point in the history
Fixes a minor issue with the dogfooding check. GitHub Actions never work
from the first time.
  • Loading branch information
hf authored Jan 11, 2025
1 parent 52141c6 commit 6811fc8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dogfooding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6811fc8

Please # to comment.