Skip to content

fix: escape environment variable values in update script #9

fix: escape environment variable values in update script

fix: escape environment variable values in update script #9

Workflow file for this run

name: Main workflow
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via Webhook 📲
env:
WEBHOOK_URL: ${{ vars.DEPLOY_WEBHOOK_URL }}
WEBHOOK_SECRET: ${{ secrets.DEPLOY_WEBHOOK_SECRET }}
run: |
ENV_JSON='{"secret":"'$WEBHOOK_SECRET'","env":'$(echo '${{ toJSON(secrets) }}')'}'
curl -X POST -H "Content-Type: application/json" -d "$ENV_JSON" "$WEBHOOK_URL"