diff --git a/.github/workflows/dispatch-wasinix-update.yml b/.github/workflows/dispatch-wasinix-update.yml new file mode 100644 index 0000000..f70b92e --- /dev/null +++ b/.github/workflows/dispatch-wasinix-update.yml @@ -0,0 +1,25 @@ +name: Dispatch Wasinix Update + +# s3-server releases are version tags rather than a dedicated release +# workflow. Dispatch as soon as one is pushed. +# +# Requires the WASINIX_DISPATCH_TOKEN secret: a token with actions write +# access on wasix-org/wasinix. The default GITHUB_TOKEN cannot dispatch +# workflows in another repository. +on: + push: + tags: + - "[0-9]+.[0-9]+.[0-9]+" + release: + types: [published] + +permissions: {} + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch the wasinix update workflow + env: + GH_TOKEN: ${{ secrets.WASINIX_DISPATCH_TOKEN }} + run: gh workflow run update.yml --repo wasix-org/wasinix -f targets=s3-server