Skip to content

Commit

Permalink
ci: cron 코드 주석처리하기(사용시에는 주석 해제)
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed Oct 27, 2023
1 parent e41d0ae commit 6d924cf
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/remind.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: run discord bot at 3:20pm
# name: run discord bot at 3:20pm

on:
schedule:
- cron: "20 6 * * *" # utc time
jobs:
cron:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v2
# on:
# schedule:
# - cron: "20 6 * * *" # utc time
# jobs:
# cron:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout
# uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "16.x"
# - name: Setup Node
# uses: actions/setup-node@v1
# with:
# node-version: "16.x"

- name: Install dependencies
run: yarn install --prefer-offline
# - name: Install dependencies
# run: yarn install --prefer-offline

- name: Generate Environment Variables File
run: |
echo "ORG=$ORG" >> .env
echo "AUTH_TOKEN=$AUTH_TOKEN" >> .env
echo "HOOK_URL=$HOOK_URL" >> .env
env:
ORG: ${{ secrets.ORG }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
HOOK_URL: ${{ secrets.HOOK_URL }}
# - name: Generate Environment Variables File
# run: |
# echo "ORG=$ORG" >> .env
# echo "AUTH_TOKEN=$AUTH_TOKEN" >> .env
# echo "HOOK_URL=$HOOK_URL" >> .env
# env:
# ORG: ${{ secrets.ORG }}
# AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
# HOOK_URL: ${{ secrets.HOOK_URL }}

- name: Run bot
run: yarn msg-remind
# - name: Run bot
# run: yarn msg-remind
56 changes: 28 additions & 28 deletions .github/workflows/send.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: run discord bot at 9am
# name: run discord bot at 9am

on:
schedule:
- cron: "0 0 * * *" # utc time
jobs:
cron:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- name: Checkout
uses: actions/checkout@v2
# on:
# schedule:
# - cron: "0 0 * * *" # utc time
# jobs:
# cron:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout
# uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: "16.x"
# - name: Setup Node
# uses: actions/setup-node@v1
# with:
# node-version: "16.x"

- name: Install dependencies
run: yarn install --prefer-offline
# - name: Install dependencies
# run: yarn install --prefer-offline

- name: Generate Environment Variables File
run: |
echo "ORG=$ORG" >> .env
echo "AUTH_TOKEN=$AUTH_TOKEN" >> .env
echo "HOOK_URL=$HOOK_URL" >> .env
env:
ORG: ${{ secrets.ORG }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
HOOK_URL: ${{ secrets.HOOK_URL }}
# - name: Generate Environment Variables File
# run: |
# echo "ORG=$ORG" >> .env
# echo "AUTH_TOKEN=$AUTH_TOKEN" >> .env
# echo "HOOK_URL=$HOOK_URL" >> .env
# env:
# ORG: ${{ secrets.ORG }}
# AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
# HOOK_URL: ${{ secrets.HOOK_URL }}

- name: Run bot
run: yarn msg-send
# - name: Run bot
# run: yarn msg-send

0 comments on commit 6d924cf

Please sign in to comment.