-
Notifications
You must be signed in to change notification settings - Fork 59
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
76e1305
commit 5dc65a9
Showing
2 changed files
with
13 additions
and
45 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,8 +1,8 @@ | ||
name: Get Earnings Calendar Data | ||
name: Auto Updater | ||
|
||
on: | ||
schedule: | ||
- cron: '*/30 * * * *' | ||
- cron: '*/6 * * * *' | ||
|
||
jobs: | ||
run-scripts: | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.