Skip to content

Commit

Permalink
fix: Added rc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ravali-rimmalapudi committed Jan 28, 2022
1 parent 8e397ca commit c3f426d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/oclif-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,18 @@ jobs:
aws-region: us-east-1
- name: Publish assests to s3 and calculate sha of oclif dev pack
id: sha256
if: ${{matrix.publish == 'homebrew'}}
if: ${{matrix.publish == 'homebrew' && github.event.inputs.formula == 'twilio'}}
run: |
npx oclif-dev publish
brew install coreutils
echo "::set-output name=sha256::$(sha256sum dist/${{ matrix.asset_name }}/${{ matrix.asset_name }}.tar.gz | awk '{print $1}')"
npx oclif-dev publish
brew install coreutils
echo "::set-output name=sha256::$(sha256sum dist/${{ matrix.asset_name }}/${{ matrix.asset_name }}.tar.gz | awk '{print $1}')"
- name: Publish assests to s3 and calculate sha of oclif dev pack for release candidate
id: sha256
if: ${{matrix.publish == 'homebrew' && github.event.inputs.formula == 'twiliorc'}}
run: |
npx oclif-dev publish
brew install coreutils
echo "::set-output name=sha256::$(sha256sum dist/${{ matrix.asset_name }}/${{ matrix.asset_name }}.tar.gz | awk '{print $1}')"
home-brew-release:
name: Trigger homebrew release workflow
runs-on: ubuntu-latest
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ jobs:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
- name: Invoke Oclif workflow for release candidate
if: ${{needs.release.outputs.tag-name != '' && github.event.inputs.draft-release != 'true' && steps.extract_branch.outputs.branch != 'main'}}
run: node .github/scripts/trigger-workflow.js
env:
WORKFLOW_NAME: 'oclif-release.yml'
REPO_NAME: ravali-rimmalapudi/twilio-cli
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
BRANCH_NAME: ${{steps.extract_branch.outputs.branch}}
INPUTS: '{ "home-brew-branch": "${{github.event.inputs.homebrew-branch}}", "tag-name": "${{needs.release.outputs.tag-name}}", "formula": "twiliorc", "pre-release": "${{github.event.inputs.homebrew-prerelease}}"}'
- name: Invoke Oclif workflow for draft release
if: ${{needs.release.outputs.tag-name != '' && github.event.inputs.draft-release == 'true'}}
run: node .github/scripts/trigger-workflow.js
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"branches": [
"main",
{
"name": "release-feature-branch",
"name": "rc/'*'",
"prerelease": "rc"
}
],
Expand Down

0 comments on commit c3f426d

Please sign in to comment.