Skip to content

Add pr-opened workflow #5

Add pr-opened workflow

Add pr-opened workflow #5

Workflow file for this run

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/native-github-asana-sync@v1.0
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'