-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2dc62c7
commit 8fbb3a5
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
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: | | ||
echo ${{ toJson(github.event.client_payload.data) }} | ||
# Execute your JavaScript script here | ||
node script/commit.js ${{ toJson(github.event.client_payload.data) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// console.log from command param | ||
|
||
const commit = process.argv[2]; | ||
|
||
console.log("TEST"); | ||
console.log(commit); |