From 00c95aaec73c9297d41079c426bc7d30a6795e4b Mon Sep 17 00:00:00 2001 From: Nicolas Brugneaux Date: Thu, 19 Oct 2023 18:13:04 +0200 Subject: [PATCH] fix: calling a workflow from another doesn't work this way --- .github/workflows/cron.yml | 10 ++++++---- .github/workflows/publish.yml | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index c91737b..e61fcac 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -9,7 +9,8 @@ on: jobs: update-ofac-list: runs-on: ubuntu-latest - + outputs: + output1: ${{ steps.step1.outputs.test }} permissions: contents: write @@ -34,6 +35,7 @@ jobs: with: commit_message: "auto: Add new OFAC addresses" - - name: "Run if changes have been detected" - if: ${{ steps.bump_version.diff_flag.GIT_EXIT_CODE == 1 }} - uses: celo-org/compliance/.github/worklows/publish.yml@main + publish-npm-package: + needs: update-ofac-list + if: ${{ steps.diff_flag.outputs.GIT_EXIT_CODE == 1 }} + uses: .github/workflows/publish.yml@main diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0363503..e06e4d0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,8 +1,10 @@ name: Publish Package to npmjs + on: workflow_call: + jobs: - build: + publish: runs-on: ubuntu-latest permissions: