Skip to content

bot-webhook

bot-webhook #5

name: Dispatched Event Workflow
on:
repository_dispatch:
types:
- bot-webhook
jobs:
run_js_script:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14 # Choose the desired Node.js version
- name: Run JavaScript Script
run: |
payload_data=$(echo "${{ toJson(github.event.client_payload) }}")
echo $payload_data
# Execute your JavaScript script here
node script/commit.js $payload_data