From 6efb6d048cce38dad1943399b261f9a449174568 Mon Sep 17 00:00:00 2001 From: geokrety-bot Date: Thu, 10 Aug 2023 10:07:29 +0200 Subject: [PATCH] ci: Add action to trigger staging website deploy --- .github/actions/deploy-website/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/actions/deploy-website/action.yml diff --git a/.github/actions/deploy-website/action.yml b/.github/actions/deploy-website/action.yml new file mode 100644 index 0000000..e932c6c --- /dev/null +++ b/.github/actions/deploy-website/action.yml @@ -0,0 +1,16 @@ +name: Deploy staging website +inputs: + header_name: + required: true + header_value: + required: true + webhook_endpoint: + required: true + +runs: + using: "composite" + steps: + - name: Call webhook + shell: bash + run: | + curl -X POST -H "${{ inputs.header_name }}: ${{ inputs.header_value }}" ${{ inputs.webhook_endpoint }} -H "Content-Type: application/json" -d null