Add pr-opened workflow #5
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: Asana integration after Pull Request submitted | |
on: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
add-task-to-app-board: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Asana task ID from description | |
id: get-asana-task-id | |
run: echo "task-id=${ $${{ github.event.pull_request.body }} | grep 'Task.*URL.*asana.*' | awk '{ print $3; }' }" >> $GITHUB_OUTPUT | |
- name: Add Asana task to Project | |
uses: duckduckgo/[email protected] | |
with: | |
asana-pat: ${{ secrets.ASANA_ACCESS_TOKEN }} | |
asana-project: '414235014887631' | |
asana-section: '414413334607374' | |
asana-task-id: ${{ steps.get-asana-task-id.outputs.task-id }} | |
action: 'add-task-asana-project' |