Update roadmap workflow #3
Workflow file for this run
This file contains hidden or 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: Dispatch Roadmap Update | |
| on: | |
| pull_request: | |
| types: [labeled] | |
| issue_comment: | |
| types: [created] | |
| jobs: | |
| handle-label: | |
| if: github.event_name == 'pull_request' && github.event.label.name == 'awaiting_tech_review' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Comment on PR to trigger privileged job | |
| uses: peter-evans/create-or-update-comment@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body: | | |
| @project-bot dispatch update-project-dates label=awaiting_tech_review | |
| handle-comment-dispatch: | |
| if: | | |
| github.event_name == 'issue_comment' && | |
| github.event.issue.pull_request && | |
| startsWith(github.event.comment.body, '@project-bot dispatch update-project-dates') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dispatch update-project-dates | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.PROJECT_TOKEN }} | |
| repository: ArmDeveloperEcosystem/arm-learning-paths | |
| event-type: update-project-dates | |
| client-payload: >- | |
| { | |
| "pr_number": ${{ github.event.pull_request.number }}, | |
| "label": "${{ github.event.label.name }}", | |
| "repo": "${{ github.repository }}" | |
| } |