Skip to content

Commit

Permalink
add asana integration (#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfauble authored Sep 15, 2022
1 parent 2370dd2 commit 6259e17
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/asana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Asana integration for Github PRs
on:
workflow_dispatch:
pull_request:
types: [closed, edited, opened, reopened]

jobs:
move-to-merged-asana-ticket-job:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Github-Asana action from Insurify
uses: insurify/[email protected]
with:
asana-pat: ${{ secrets.ASANA_PERSONAL_ACCESS_TOKEN }}
trigger-phrase: "\\*\\*Asana Ticket:\\*\\*"
targets: '[{"project": "TRC - Sprint", "section": "Merged / Not Deployed"}]'
move-to-in-review-asana-ticket-job:
runs-on: ubuntu-latest
if: github.event.pull_request.merged != true
steps:
- name: Github-Asana action from Insurify
uses: insurify/[email protected]
with:
asana-pat: ${{ secrets.ASANA_PERSONAL_ACCESS_TOKEN }}
trigger-phrase: "\\*\\*Asana Ticket:\\*\\*"
targets: '[{"project": "TRC - Sprint", "section": "In Review"}]'
create-asana-attachment-job:
runs-on: ubuntu-latest
name: Create pull request attachments on Asana tasks
steps:
- name: Create pull request attachments
uses: Asana/create-app-attachment-github-action@latest
id: postAttachment
with:
asana-secret: ${{ secrets.ASANA_GITHUB_INTEGRATION_SECRET }}
- name: Log output status
run: echo "Status is ${{ steps.postAttachment.outputs.status }}"

0 comments on commit 6259e17

Please sign in to comment.