-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1710 from OneSignal/zapier-action
Close asana tasks generated by github issues
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 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] | ||
|
||
# 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 }} | ||
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 }}" | ||
}' |