From 8fa56d276d36be858b03c7b64b22a315d56952cf 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..3123302 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: celo-org/compliance/.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: