Skip to content

Commit

Permalink
chore: disable docker, scoop and homebrew release
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Apr 11, 2023
1 parent ff8837e commit 22322e8
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 87 deletions.
120 changes: 60 additions & 60 deletions .github/workflows/oclif-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,63 +69,63 @@ jobs:
else
echo "::set-output name=sha256::$(sha256sum dist/${{ matrix.asset_name }}/${{ matrix.asset_name }}.tar.gz | awk '{print $1}')"
fi
home-brew-release:
name: Trigger homebrew release workflow
runs-on: ubuntu-latest
needs: [oclif-release]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- name: Invoke HomeBrew workflow
run: source .github/scripts/trigger-and-wait.sh
env:
INPUT_OWNER: ${{ github.repository_owner }}
INPUT_REPO: homebrew-brew
INPUT_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
INPUT_WORKFLOW_FILE_NAME: release.yml
INPUT_REF: main
INPUT_WAITING_INTERVAL: 10
INPUT_INPUTS: '{ "formula": "${{steps.release-flag.outputs.formula}}", "version": "${{github.event.inputs.tag-name}}", "sha": "${{needs.oclif-release.outputs.sha256}}", "pre-release": "${{steps.release-flag.outputs.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: Extract branch name
id: extract_branch
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
env:
INPUT_OWNER: ${{ github.repository_owner }}
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 ]
name: Notify Release Failed
runs-on: ubuntu-latest
steps:
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- uses: actions/checkout@v2
- name: Slack Notification
if: ${{steps.extract_branch.outputs.branch == 'main' }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }}
SLACK_COLOR: "#ff3333"
SLACK_USERNAME: CLI Release Bot
SLACK_ICON_EMOJI: ":ship:"
SLACK_TITLE: "Twilio Cli"
SLACK_MESSAGE: 'Oclif Release Workflow Failed'
MSG_MINIMAL: actions url
# home-brew-release:
# name: Trigger homebrew release workflow
# runs-on: ubuntu-latest
# needs: [oclif-release]
# steps:
# - name: Checkout cli repo
# uses: actions/checkout@v2
# - name: Invoke HomeBrew workflow
# run: source .github/scripts/trigger-and-wait.sh
# env:
# INPUT_OWNER: ${{ github.repository_owner }}
# INPUT_REPO: homebrew-brew
# INPUT_GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# INPUT_WORKFLOW_FILE_NAME: release.yml
# INPUT_REF: main
# INPUT_WAITING_INTERVAL: 10
# INPUT_INPUTS: '{ "formula": "${{steps.release-flag.outputs.formula}}", "version": "${{github.event.inputs.tag-name}}", "sha": "${{needs.oclif-release.outputs.sha256}}", "pre-release": "${{steps.release-flag.outputs.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: Extract branch name
# id: extract_branch
# 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
# env:
# INPUT_OWNER: ${{ github.repository_owner }}
# 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 ]
# name: Notify Release Failed
# runs-on: ubuntu-latest
# steps:
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - uses: actions/checkout@v2
# - name: Slack Notification
# if: ${{steps.extract_branch.outputs.branch == 'main' }}
# uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_WEBHOOK: ${{ secrets.ALERT_SLACK_WEB_HOOK }}
# SLACK_COLOR: "#ff3333"
# SLACK_USERNAME: CLI Release Bot
# SLACK_ICON_EMOJI: ":ship:"
# SLACK_TITLE: "Twilio Cli"
# SLACK_MESSAGE: 'Oclif Release Workflow Failed'
# MSG_MINIMAL: actions url
54 changes: 27 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,33 +99,33 @@ jobs:
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "branch": "${{github.event.inputs.branch}}", "tag-name": "${{needs.release.outputs.tag-name}}" }'

docker-release:
runs-on: ubuntu-latest
needs: [ release ]
steps:
- name: Checkout cli repo
uses: actions/checkout@v2
- run: |
git pull
make install
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Invoke Docker workflow
if: ${{needs.release.outputs.tag-name != ''}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: 'docker-release.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
- name: Run acceptance testing for docker release
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: '.github/workflows/cli-test-docker.yml'
REPO_NAME: ${{ github.repository }}
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# docker-release:
# runs-on: ubuntu-latest
# needs: [ release ]
# steps:
# - name: Checkout cli repo
# uses: actions/checkout@v2
# - run: |
# git pull
# make install
# - name: Extract branch name
# id: extract_branch
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
# - name: Invoke Docker workflow
# if: ${{needs.release.outputs.tag-name != ''}}
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: 'docker-release.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
# - name: Run acceptance testing for docker release
# run: node .github/scripts/trigger-workflow.js
# env:
# WORKFLOW_NAME: '.github/workflows/cli-test-docker.yml'
# REPO_NAME: ${{ github.repository }}
# REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
# BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
platform-executables-release:
runs-on: ubuntu-latest
needs: [ release ]
Expand Down

0 comments on commit 22322e8

Please sign in to comment.