Update XTS Master Instruments #276
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 XTS Master Instruments | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '23 2 * * 1-5' | |
- cron: '23 15 * * 1-5' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
CI_COMMIT_MESSAGE: Update Latest XTS Master Instruments CSV Files | |
CI_COMMIT_AUTHOR: DrJuneMoone | |
steps: | |
- uses: actions/checkout@v3 | |
# Build steps | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10.x' | |
- run: python --version | |
- run: pip install -r requirements.txt | |
- run: python main.py | |
# Commit and push all changed files. | |
- name: GIT Commit Build Artifacts (coverage, dist, devdist, docs) | |
# Only run on main branch push (e.g. after pull request merge). | |
if: contains(fromJson('["schedule", "push", "pull_request"]'), github.event_name) | |
run: | | |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | |
git config --global user.email "[email protected]" | |
git add --all | |
git commit --all -m "${{ env.CI_COMMIT_MESSAGE }}" | |
git push |