diff --git a/.github/workflows/add-asana-comment.yml b/.github/workflows/add-asana-comment.yml new file mode 100644 index 0000000..145db87 --- /dev/null +++ b/.github/workflows/add-asana-comment.yml @@ -0,0 +1,17 @@ +on: + pull_request: + types: [opened, closed, reopened] + +jobs: + create-comment-in-asana-task-job: + runs-on: ubuntu-latest + name: Create a comment in Asana Task + steps: + - name: Create a comment + uses: Asana/comment-on-task-github-action@v1.2 + id: createComment + with: + asana-secret: ${{ secrets.ASANA_SECRET }} + comment-text: "{{PR_NAME}} is {{PR_STATE}}: {{PR_URL}}" + - name: Get status + run: echo "Status is ${{ steps.createComment.outputs.status }}"