두 용액 #716
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
name: Run JavaScript on Push | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run_js: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" # You can specify your desired Node.js version | |
- name: Install Dependencies | |
run: | | |
cd .github/workflows/anabada | |
npm install | |
- name: Discord webhook | |
run: | | |
export DISCORD_WEBHOOK_URL="${{ secrets.DISCORD_WEBHOOK_URL }}" | |
node .github/workflows/anabada/main.js |