Skip to content

Commit

Permalink
replace with asana gha
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Oct 17, 2024
1 parent c5effc2 commit b87d206
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/asana-notify-approved.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Pull Request Reviewed

on:
pull_request:
types: [opened, closed, reopened]
pull_request_review:
types: [submitted]

jobs:
pr-reviewed:
if: github.event.review.state == 'approved'
create-comment-in-asana-task-job:
runs-on: ubuntu-latest
name: Create a comment in Asana Task
steps:
- name: Update Asana task -> PR approved
uses: duckduckgo/[email protected]
- name: Create a comment
uses: Asana/[email protected]
id: createComment
with:
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
trigger-phrase: "ATASK:"
action: 'notify-pr-approved'
asana-secret: ${{ secrets.GH_ASANA_SECRET }}
comment-text: "{{PR_NAME}} is {{PR_STATE}}: {{PR_URL}}"
- name: Get status
run: echo "Status is ${{ steps.createComment.outputs.status }}"

0 comments on commit b87d206

Please sign in to comment.