-
Notifications
You must be signed in to change notification settings - Fork 56
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
3fcd64b
commit f65cfbc
Showing
2 changed files
with
18 additions
and
7 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Generate ics files | |
|
||
on: | ||
schedule: | ||
- cron: '*/30 * * * *' | ||
- cron: '*/8 * * * *' | ||
|
||
jobs: | ||
run-scripts: | ||
|
@@ -11,6 +11,11 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Reset local changes | ||
run: | | ||
git fetch origin main | ||
git reset --hard origin/main | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
|
@@ -22,13 +27,14 @@ jobs: | |
- name: Run genAllIcs script | ||
run: node ./api/github_gen.js | ||
env: | ||
SHOULD_GEN_SELECTED: ${{ secrets.SHOULD_GEN_SELECTED }} | ||
SHOULD_GEN_ALL: ${{ secrets.SHOULD_GEN_ALL }} | ||
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 | ||
git commit -m "Auto generated ics files" -a || echo "No changes to commit" | ||
git push | ||
git push --force | ||
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