Skip to content

Commit 8803a80

Browse files
authored
fix: update release workflows to trigger nix build workflow on successful publish (#692)
1 parent 590c356 commit 8803a80

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/release-native.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Release Native
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
74
workflow_dispatch:
85

96
permissions:

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,20 @@ jobs:
167167
dst: |
168168
public.ecr.aws/supabase/edge-runtime:v${{ needs.release.outputs.version }}
169169
ghcr.io/supabase/edge-runtime:v${{ needs.release.outputs.version }}
170+
171+
trigger_native_release:
172+
needs: [release, merge_manifest]
173+
if: needs.release.outputs.published == 'true' && needs.merge_manifest.result == 'success'
174+
runs-on: ubuntu-latest
175+
steps:
176+
- name: Trigger native release
177+
uses: actions/github-script@v7
178+
with:
179+
github-token: ${{ secrets.GITHUB_TOKEN }}
180+
script: |
181+
await github.rest.actions.createWorkflowDispatch({
182+
owner: context.repo.owner,
183+
repo: context.repo.repo,
184+
workflow_id: 'release-native.yml',
185+
ref: 'v${{ needs.release.outputs.version }}'
186+
})

0 commit comments

Comments
 (0)