Skip to content

Commit

Permalink
chore: Trigger scoop repo workflow through release (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
onuzbee authored Dec 1, 2021
1 parent 3080312 commit 7c674cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/oclif-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,23 @@ jobs:
INPUT_WAITING_INTERVAL: 10
INPUT_INPUTS: '{ "formula": "${{github.event.inputs.formula}}", "version": "${{github.event.inputs.tag-name}}", "sha": "${{needs.oclif-release.outputs.sha256}}", "pre-release": "${{github.event.inputs.pre-release}}" }'
INPUT_PROPAGATE_FAILURE: true
scoop-release:
name: Trigger scoop release workflow
runs-on: ubuntu-latest
needs: [ oclif-release ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Invoke Scoop workflow
run: source .github/scripts/trigger-and-wait.sh
env:
INPUT_OWNER: twilio
INPUT_REPO: scoop-twilio-cli
INPUT_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
INPUT_WORKFLOW_FILE_NAME: update-release.yml
INPUT_WAITING_INTERVAL: 10
INPUT_INPUTS: '{ "version": "${{github.event.inputs.tag-name}}" }'
INPUT_PROPAGATE_FAILURE: true
notify-complete-fail:
if: ${{ failure() || cancelled() }}
needs: [ home-brew-release ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: source .github/scripts/trigger-and-wait.sh
env:
INPUT_WORKFLOW_FILE_NAME: docker-release.yml
- name: Wait for Oclif Release
- name: Wait for Oclif, Homebrew and Scoop Release
run: source .github/scripts/trigger-and-wait.sh
env:
INPUT_WORKFLOW_FILE_NAME: oclif-release.yml
Expand Down

0 comments on commit 7c674cf

Please sign in to comment.