-
Notifications
You must be signed in to change notification settings - Fork 1
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
e41d0ae
commit 6d924cf
Showing
2 changed files
with
56 additions
and
56 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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 |