2023-02-01 15:24:58 +01:00
|
|
|
name: Get ecb fx data
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-02-01 19:03:44 +01:00
|
|
|
- cron: "0 16 * * *"
|
2023-02-01 15:24:58 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
stale:
|
|
|
|
|
2023-02-09 14:57:23 +01:00
|
|
|
runs-on: ubuntu-22.04
|
2023-02-01 15:24:58 +01:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- name: Set up Python 3.9
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
|
|
- name: Create local changes
|
|
|
|
run: |
|
2023-02-01 15:27:35 +01:00
|
|
|
python ecb.py
|
2023-02-01 15:24:58 +01:00
|
|
|
- name: Commit files
|
|
|
|
run: |
|
2023-03-09 00:57:20 +01:00
|
|
|
git config --local user.email "github.action@vane.pl"
|
2023-02-01 15:24:58 +01:00
|
|
|
git config --local user.name "GitHub Action"
|
|
|
|
git add data
|
|
|
|
git commit -m "Update data" -a
|
|
|
|
- name: Push changes
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|