refactor: use config object to make phase manager less noisy (#8586) #1826
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release-please | |
# Trigger on merges to 'master' branch | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Release Please | |
id: release | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | |
command: manifest | |
- name: Dispatch to publish BB workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
if: ${{ steps.release.outputs.tag_name }} | |
with: | |
workflow: publish-bb.yml | |
ref: master | |
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | |
inputs: '{ "tag": "${{ steps.release.outputs.tag_name }}", "publish": true }' | |
- name: Dispatch to publish docs workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
if: ${{ steps.release.outputs.tag_name }} | |
with: | |
workflow: publish-docs.yml | |
ref: master | |
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | |
inputs: '{ "tag": "${{ steps.release.outputs.tag_name }}" }' |