-
Notifications
You must be signed in to change notification settings - Fork 26
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
d70325b
commit 7d23e7f
Showing
1 changed file
with
28 additions
and
0 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,28 @@ | ||
name: Update Transaction Dates for Assets Users | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Runs at 00:00 UTC every day. | ||
workflow_dispatch: # Allows you to manually run this workflow from the Actions tab | ||
|
||
jobs: | ||
update-date: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Run the script to update the date | ||
run: python assets/update_date.py | ||
|
||
- name: Commit and push if there are changes | ||
run: | | ||
git config --global user.email "4397978+ToddKerpelman@users.noreply.github.com" | ||
git config --global user.name "ToddBot" | ||
git diff --quiet || (git commit -am "Auto-update dates" && git push) |