Skip to content

Commit 73c876a

Browse files
committed
chore(ci): prems
1 parent b3f0a21 commit 73c876a

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,22 @@ jobs:
4040
team_slug,
4141
username: actor,
4242
})
43+
console.log('res', JSON.stringify(res, null, 2))
4344
return res && res.status === 200
4445
} catch (_) {
4546
return false
4647
}
4748
}
48-
4949
const isAdmin = await isTeamMember('admin')
5050
const isClientLibs = await isTeamMember('client-libs')
5151
const isMember = isAdmin || isClientLibs
52+
console.log('isAdmin', isAdmin)
53+
console.log('isClientLibs', isClientLibs)
54+
console.log('isMember', isMember)
5255
core.setOutput('is_team_member', isMember ? 'true' : 'false')
5356
5457
- name: Fail if not authorized
55-
if: ${{ steps.team-check.outputs.is_team_member != 'true' }}
58+
if: steps.team-check.outputs.is_team_member != 'true'
5659
run: |
5760
echo "You must be a member of @supabase/admin or @supabase/client-libs."
5861
exit 1
@@ -207,8 +210,7 @@ jobs:
207210
uses: ./.github/workflows/ci-auth-js-node18.yml
208211
permissions:
209212
actions: read
210-
contents:
211-
read
213+
contents: read
212214

213215
# ==========================================
214216
# CANARY RELEASE (only on master, after all CI passes)
@@ -268,20 +270,20 @@ jobs:
268270
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
269271
RELEASE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
270272

271-
notify-stable-failure:
272-
name: Notify Slack for Stable failure
273-
needs: release-stable
274-
if: ${{ always() && github.event_name == 'workflow_dispatch' && needs.release-stable.result == 'failure' }}
275-
uses: ./.github/workflows/slack-notify.yml
276-
secrets: inherit
277-
with:
278-
subject: 'Stable Release'
279-
280-
notify-canary-failure:
281-
name: Notify Slack for Canary failure
282-
needs: release-canary
283-
if: ${{ always() && github.event_name == 'push' && needs.release-canary.result == 'failure' }}
284-
uses: ./.github/workflows/slack-notify.yml
285-
secrets: inherit
286-
with:
287-
subject: 'Canary Release'
273+
# notify-stable-failure:
274+
# name: Notify Slack for Stable failure
275+
# needs: release-stable
276+
# if: ${{ always() && github.event_name == 'workflow_dispatch' && needs.release-stable.result == 'failure' }}
277+
# uses: ./.github/workflows/slack-notify.yml
278+
# secrets: inherit
279+
# with:
280+
# subject: 'Stable Release'
281+
282+
# notify-canary-failure:
283+
# name: Notify Slack for Canary failure
284+
# needs: release-canary
285+
# if: ${{ always() && github.event_name == 'push' && needs.release-canary.result == 'failure' }}
286+
# uses: ./.github/workflows/slack-notify.yml
287+
# secrets: inherit
288+
# with:
289+
# subject: 'Canary Release'

0 commit comments

Comments
 (0)