Skip to content

Commit

Permalink
Merge pull request #27 from OneSignal/zapier-fix
Browse files Browse the repository at this point in the history
Update Zapier.yml
  • Loading branch information
jkasten2 authored Mar 10, 2023
2 parents 6368b8d + c08aeee commit f23be73
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/Zapier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ 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:
Expand All @@ -20,10 +23,12 @@ jobs:
# 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" : "${{ github.event.issue.title }}"
"task_name" : "$ISSUE_TITLE"
}'

0 comments on commit f23be73

Please sign in to comment.