Implementation of Teams batch APIs #259
Workflow file for this run
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: create-botbuilder-parity-issues.yml | |
on: | |
pull_request: | |
branches: | |
- main | |
- v5 | |
types: [closed] | |
jobs: | |
encode: | |
name: encode inputs | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true | |
outputs: | |
pr-body: ${{ steps.pr-body.outputs.value }} | |
pr-number: ${{ steps.pr-number.outputs.value }} | |
pr-title: ${{ steps.pr-title.outputs.value }} | |
repository: ${{ steps.repository.outputs.value }} | |
steps: | |
- id: pr-body | |
uses: joshgummersall/base64-encode@main | |
with: | |
value: ${{ github.event.pull_request.body }} | |
- id: pr-number | |
uses: joshgummersall/base64-encode@main | |
with: | |
value: ${{ github.event.pull_request.number }} | |
- id: pr-title | |
uses: joshgummersall/base64-encode@main | |
with: | |
value: ${{ github.event.pull_request.title }} | |
- id: repository | |
uses: joshgummersall/base64-encode@main | |
with: | |
value: ${{ github.repository }} | |
dispatchWorkflow: | |
name: create parity issue | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.merged == true | |
needs: encode | |
strategy: | |
matrix: | |
repo: [java, js, python] | |
steps: | |
- run: echo "::notice ::Creating issue for ${{ matrix.repo }}" | |
if: | | |
contains(github.event.pull_request.labels.*.name, 'Automation: Parity all') == true || contains(github.event.pull_request.labels.*.name, format('Automation: parity with {0}', matrix.repo)) == true | |
- uses: joshgummersall/dispatch-workflow@main | |
if: | | |
contains(github.event.pull_request.labels.*.name, 'Automation: Parity all') == true || contains(github.event.pull_request.labels.*.name, format('Automation: parity with {0}', matrix.repo)) == true | |
with: | |
encoded: "true" | |
inputs: | | |
{ | |
"prDescription": "${{ needs.encode.outputs.pr-body }}", | |
"prNumber": "${{ needs.encode.outputs.pr-number }}", | |
"prTitle": "${{ needs.encode.outputs.pr-title }}", | |
"sourceRepo": "${{ needs.encode.outputs.repository }}" | |
} | |
ref: main | |
repo: microsoft/botbuilder-${{ matrix.repo }} | |
token: "${{ secrets.BOTBUILDER_JS_ACCESS_TOKEN }}" | |
workflow: create-parity-issue.yml |