Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: using trigger and wait from twilio-cli-core #525

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/scripts/trigger-and-wait.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const { triggerAndWait } = require('@twilio/cli-core').releaseScripts.TriggerWaitWorkflow;
(async () => {
await triggerAndWait();
})();
156 changes: 0 additions & 156 deletions .github/scripts/trigger-and-wait.sh

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for oclif executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_OWNER: ${{ github.repository_owner }}
INPUT_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for windows executables Release
run: bash .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: windows-executable-release.yml
INPUT_REF: ${{ needs.get-branch.outputs.branch }}
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for macos executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: macos-executable-release.yml
INPUT_REF: ${{ needs.get-branch.outputs.branch }}
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for debian executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: debian-executable-release.yml
INPUT_REF: ${{ needs.get-branch.outputs.branch }}
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for apt Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: apt-release.yml
INPUT_REF: ${{ needs.get-branch.outputs.branch }}
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for Scoop release to finish
run: bash .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: update-release.yml
INPUT_REF: main
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cli-test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Check Out Repo
uses: actions/checkout@v2
- name: Wait for docker release to finish
run: bash .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_OWNER: ${{ github.repository_owner }}
INPUT_WORKFLOW_FILE_NAME: docker-release.yml
Expand All @@ -41,4 +41,4 @@ jobs:
docker run --rm twilio/twilio-cli:2.36.1 /bin/bash -c "twilio api:accounts --help && twilio" && docker pull twilio/twilio-cli:latest && docker run --rm twilio/twilio-cli:latest /bin/bash -c "twilio api:accounts --help && twilio"
- name: Test for the latest release
run: |
docker run --rm twilio/twilio-cli /bin/bash -c "twilio api:accounts --help && twilio"
docker run --rm twilio/twilio-cli /bin/bash -c "twilio api:accounts --help && twilio"
4 changes: 2 additions & 2 deletions .github/workflows/oclif-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Invoke HomeBrew workflow
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_OWNER: ${{ github.repository_owner }}
INPUT_REPO: homebrew-brew
Expand All @@ -93,7 +93,7 @@ jobs:
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Invoke Scoop workflow
if: ${{steps.extract_branch.outputs.branch == 'main'}}
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_OWNER: ${{ github.repository_owner }}
INPUT_REPO: scoop-twilio-cli
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ jobs:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Wait for Docker Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: docker-release.yml
- name: Wait for Oclif, Homebrew and Scoop Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: oclif-release.yml
- name: Wait for debian executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: debian-executable-release.yml
- name: Wait for windows executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: windows-executable-release.yml
- name: Wait for RPM Build
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: rpmbuild.yml
- name: Wait for macos executables Release
run: source .github/scripts/trigger-and-wait.sh
run: node .github/scripts/trigger-and-wait.js
env:
INPUT_WORKFLOW_FILE_NAME: macos-executable-release.yml
notify-complete-success:
Expand Down