From 450b6c0182a9bd669755fe34c674b31c7877ff8f Mon Sep 17 00:00:00 2001 From: Sina <65910646+SinaSeylani@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:45:18 -0600 Subject: [PATCH] Publish.yml updated --- .github/workflows/publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a7e449a..c2768070 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,8 @@ name: Publish Flutter Package on: - workflow_dispatch: # Allows the workflow to be manually triggered + repository_dispatch: + types: [publish] jobs: publish: @@ -11,6 +12,8 @@ jobs: steps: - name: Check out code uses: actions/checkout@v3 + with: + ref: ${{ github.event.client_payload.ref }} - name: Set up Flutter uses: subosito/flutter-action@v2