From c08aeeec5d50eb6ba8aa60344d6d1280b121d694 Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Fri, 10 Mar 2023 14:10:21 -0800 Subject: [PATCH] Update Zapier.yml --- .github/workflows/Zapier.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Zapier.yml b/.github/workflows/Zapier.yml index 4eb356b..3665dd5 100644 --- a/.github/workflows/Zapier.yml +++ b/.github/workflows/Zapier.yml @@ -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: @@ -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" }'