-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
40 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update Manual Installer | ||
|
||
on: | ||
# Runs every Sunday at midnight (UTC) | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
# Allows you to manually trigger the workflow too | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-manual-install: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
if [ -f requirements.txt ]; then | ||
pip install -r requirements.txt | ||
fi | ||
- name: Run update script | ||
run: | | ||
python -m services.update_manual_install | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name "Jaton Justice" | ||
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}" | ||
git add . | ||
git commit -m "Weekly automated manual installer update" || echo "No changes to commit" | ||
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