-
Notifications
You must be signed in to change notification settings - Fork 6
27 lines (26 loc) · 1.15 KB
/
gh-pr-to-asana.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Sync Github Pull Request to Asana
on:
pull_request_target:
types: [opened, reopened]
jobs:
create-asana-attachment-job:
runs-on: ubuntu-latest
name: Create pull request attachments on Asana tasks
steps:
- name: Create pull request attachments
uses: honeycombio/gha-create-pr-attachment@main
id: postAttachment
with:
asana-secret: ${{ secrets.ASANA_SECRET }}
- name: Create task if not found
if: ${{ !contains(steps.postAttachment.outputs.status, '201') }}
uses: honeycombio/gha-create-asana-task@v1.0.0
with:
asana-secret: ${{ secrets.ASANA_PAT }}
asana-workspace-id: ${{ secrets.ASANA_WORKSPACE_ID }}
asana-project-id: ${{ secrets.ASANA_PROJECT_ID }}
asana-section-id: ${{ secrets.ASANA_SECTION_ID }}
asana-task-name: '${{ github.event.repository.name}}: ${{ github.event.pull_request.title }}'
asana-task-description: |
${{ github.event.pull_request.body }}
source: https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/pull/${{ github.event.pull_request.number }}