Skip to content

fix(api-search): ZMS-94: keep $text queries plannable inside OR branc… #519

fix(api-search): ZMS-94: keep $text queries plannable inside OR branc…

fix(api-search): ZMS-94: keep $text queries plannable inside OR branc… #519

Workflow file for this run

# This is a basic workflow that is manually triggered
name: Slack
# Controls when the action will run. Workflow runs when manually triggered using the UI or API.
on:
push:
branches:
- 'master'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
send_webhook:
# 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 single command using the runners shell
- name: Webhook
env:
webhook_url: ${{ secrets.ZONE_WEBHOOK_URL }}
curl_options: '--fail -s'
GITHUB_ACTOR_NAME: ${{ github.actor }}
GITHUB_REPOSITORY_NAME: ${{ github.repository }}
GITHUB_SHA_VALUE: ${{ github.sha }}
GITHUB_REF_NAME_VALUE: ${{ github.ref_name }}
GITHUB_HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
text="*${GITHUB_ACTOR_NAME}* pushed <https://github.com/${GITHUB_REPOSITORY_NAME}/commit/${GITHUB_SHA_VALUE}|${GITHUB_SHA_VALUE}> to *${GITHUB_REF_NAME_VALUE}*"
text="${text}"$'\n'" ${GITHUB_HEAD_COMMIT_MESSAGE}"
data="$(jq -n --arg channel "wildduck-changelog" --arg text "$text" '{channel: $channel, text: $text}')"
curl $curl_options \
-H "Content-Type: application/json" \
-H "User-Agent: GitHub-Action" \
--data "$data" "$webhook_url"