Skip to content

Commit

Permalink
Try to extract task ID
Browse files Browse the repository at this point in the history
  • Loading branch information
graeme committed Dec 8, 2023
1 parent 5236637 commit df6647f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pr-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ 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 }}
trigger-phrase: 'ASANA TASK:'
asana-project: '414235014887631'
asana-section: '414413334607374'
asana-task-id: ${{ steps.get-asana-task-id.outputs.task-id }}
action: 'add-task-asana-project'

0 comments on commit df6647f

Please sign in to comment.