-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from gradedSystem/main
[fix][s] Fixing the gh actions
- Loading branch information
Showing
6 changed files
with
306 additions
and
258 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,7 +1,7 @@ | ||
name: Run Makefile with Selenium | ||
|
||
on: | ||
# Schedule to run every 1st day of a month at 00 UTC | ||
# Schedule to run on the 1st day of each month | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
|
||
|
@@ -48,7 +48,20 @@ jobs: | |
run: | | ||
Xvfb :99 -screen 0 1024x768x24 & | ||
export DISPLAY=:99 | ||
make update | ||
source venv/bin/activate | ||
make update | ||
- name: Run Make Clean | ||
run: make clean | ||
run: | | ||
source venv/bin/activate | ||
make clean | ||
- name: Push and Commit | ||
env: | ||
CI_COMMIT_NAME: "Automated commit" | ||
CI_COMMIT_EMAIL: "[email protected]" | ||
CI_COMMIT_MESSAGE: "Automated commit" | ||
run: | | ||
git config --global user.email "${{env.CI_COMMIT_EMAIL}}" | ||
git config --global user.name "${{env.CI_COMMIT_NAME}}" | ||
git diff --quiet && echo "No changes to commit" || (git add data/country-codes.csv && git commit -m "${{env.CI_COMMIT_MESSAGE}}" && git push) |
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
Oops, something went wrong.