Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
jason5ng32 committed Feb 26, 2024
1 parent 76e1305 commit 5dc65a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 45 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/autoget.yml → .github/workflows/auto.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Get Earnings Calendar Data
name: Auto Updater

on:
schedule:
- cron: '*/30 * * * *'
- cron: '*/6 * * * *'

jobs:
run-scripts:
Expand Down Expand Up @@ -30,11 +30,20 @@ jobs:
SHOULD_GEN_SELECTED: ${{ vars.SHOULD_GEN_SELECTED }}
SHOULD_GEN_ALL: ${{ vars.SHOULD_GEN_ALL }}

- name: Waiting for 10 seconds
run: sleep 10

- name: Run genAllIcs script
run: node ./api/github_gen.js
env:
SHOULD_GEN_SELECTED: ${{ vars.SHOULD_GEN_SELECTED }}
SHOULD_GEN_ALL: ${{ vars.SHOULD_GEN_ALL }}

- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
CURRENT_DATE=$(date +"%Y-%m-%d")
git commit -m "Auto update earnings files - $CURRENT_DATE" -a || echo "No changes to commit"
git push --force
git commit -m "Bot Auto update - $CURRENT_DATE" -a || echo "No changes to commit"
git push --force
41 changes: 0 additions & 41 deletions .github/workflows/autogen.yml

This file was deleted.

0 comments on commit 5dc65a9

Please sign in to comment.