Skip to content

Commit 05c8c09

Browse files
authored
ci: fix dogfooding check to identify current latest rc not future rc (#1911)
Previously it identified the next RC version, not the currently published one.
1 parent 6811fc8 commit 05c8c09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/dogfooding.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
- uses: actions/checkout@v4
1818
if: github.event.pull_request.base.ref == 'master' && github.event.pull_request.head.ref == 'release-please--branches--master'
1919
with:
20-
ref: master # used to identify the current RC version via git describe --tags --exclude rc*
20+
ref: master # used to identify the latest RC version via git describe --tags --match rc*
2121
fetch-depth: 0
2222

2323
- if: github.event.pull_request.base.ref == 'master' && github.event.pull_request.head.ref == 'release-please--branches--master'
2424
run: |
2525
set -ex
2626
27-
MAIN_RELEASE_VERSION=$(node -e "console.log('${{ github.event.pull_request.title }}'.split(' ').reverse().find(x => x.match(/[0-9]+[.][0-9]+[.][0-9]+/)))")
28-
RELEASE_VERSION=$MAIN_RELEASE_VERSION-rc.$(node -e "console.log('$(git describe --tags --exclude rc*)'.split('-')[1])")
27+
# finds the latest RC version on master
28+
RELEASE_VERSION=$(node -e "const a = '$(git describe --tags --match rc*)'.replace(/^rc/, 'v').split('-'); console.log(a[0] + '-' + a[1]);")
2929
3030
PROD_VERSION=$(curl 'https://auth.supabase.io/auth/v1/health' | jq -r .version)
3131
STAGING_VERSION=$(curl 'https://alt.supabase.green/auth/v1/health' | jq -r .version)

0 commit comments

Comments
 (0)