Skip to content

Commit f2f2bf0

Browse files
authored
Merge pull request #577 from OneSignal/zapier-action
Close asana tasks created by Github issues
2 parents d3189b7 + b6560ff commit f2f2bf0

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/Zapier.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is an action to close asana tasks that were generated by Github issues
2+
3+
name: Zapier web hook
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
issues:
9+
types: [closed]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
build:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Runs a set of commands using the runners shell
21+
- name: Call Zapier web hook to close Asana task
22+
if: ${{ !github.event.issue.pull_request }}
23+
run: |
24+
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
25+
--header 'Content-Type: application/json' \
26+
--header 'Accept: application/json' \
27+
--data-raw '{
28+
"task_name" : "${{ github.event.issue.title }}"
29+
}'

0 commit comments

Comments
 (0)