From f5c691588d9f9f330b669fd162768c5911c8cdc2 Mon Sep 17 00:00:00 2001 From: Jama Mohamed Date: Wed, 15 May 2024 18:18:53 +0300 Subject: [PATCH] Update workflow file --- .github/workflows/ci.yml | 1 + .github/workflows/publish.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94f2c03..55444b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: pull_request: branches: - master + workflow_call: jobs: run-tests: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a2c49d3..b77b559 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,11 @@ on: - "v[0-9]+.[0-9]+.[0-9]+*" jobs: + run-tests: + uses: ./.github/workflows/ci.yml + secrets: inherit publish: permissions: id-token: write + needs: run-tests uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1