Skip to content

Commit

Permalink
fix: calling a workflow from another doesn't work this way
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Oct 19, 2023
1 parent d20ffef commit 388d93e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
jobs:
update-ofac-list:
runs-on: ubuntu-latest

outputs:
output1: ${{ steps.step1.outputs.test }}
permissions:
contents: write

Expand All @@ -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: publish.yml@main
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Publish Package to npmjs

on:
workflow_call:

jobs:
build:
publish:
runs-on: ubuntu-latest

permissions:
Expand Down

0 comments on commit 388d93e

Please sign in to comment.