Update Transaction Dates for Assets Users #394
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
name: Update Transaction Dates for Assets Users | |
on: | |
schedule: | |
- cron: "30 0 * * *" # Runs at 00:30 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@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Say hello | |
run: | | |
echo "Hello from the workflow branch!" | |
- name: Run the script to update the date | |
run: python update_dates.py | |
- name: Commit and push if there are changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ToddBot" | |
git diff --quiet || (git commit -am "Auto-update dates" && git push) |