File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 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+ permissions :
12+ issues : read
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ build :
18+ # The type of runner that the job will run on
19+ runs-on : ubuntu-latest
20+
21+ # Steps represent a sequence of tasks that will be executed as part of the job
22+ steps :
23+ # Runs a set of commands using the runners shell
24+ - name : Call Zapier web hook to close Asana task
25+ if : ${{ !github.event.issue.pull_request }}
26+ env :
27+ ISSUE_TITLE : ${{ github.event.issue.title }}
28+ run : |
29+ curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
30+ --header 'Content-Type: application/json' \
31+ --header 'Accept: application/json' \
32+ --data-raw '{
33+ "task_name" : "$ISSUE_TITLE"
34+ }'
Original file line number Diff line number Diff line change @@ -163,4 +163,4 @@ let package = Package(
163163 checksum: " c98dc8c807767126fb88bb7257206618c333bf9cb3bbf5582c828f1ffb167436 "
164164 )
165165 ]
166- )
166+ )
You can’t perform that action at this time.
0 commit comments