Skip to content

Commit

Permalink
Merge pull request #27 from OneSignal/zaper-action
Browse files Browse the repository at this point in the history
Close asana task generated from Github issues
  • Loading branch information
emawby committed Mar 10, 2023
2 parents f2a9538 + c167540 commit 056c154
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/Zapier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is an action to close asana tasks that were generated by Github issues

name: Zapier web hook

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
issues:
types: [closed]

permissions:
issues: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a set of commands using the runners shell
- name: Call Zapier web hook to close Asana task
if: ${{ !github.event.issue.pull_request }}
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"task_name" : "$ISSUE_TITLE"
}'

0 comments on commit 056c154

Please sign in to comment.