mirror of
https://github.com/vane/ecb-fx
synced 2024-11-12 06:25:50 +01:00
36 lines
860 B
YAML
36 lines
860 B
YAML
|
name: Get ecb fx data
|
||
|
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
schedule:
|
||
|
- cron: "0 17 * * *"
|
||
|
|
||
|
jobs:
|
||
|
stale:
|
||
|
|
||
|
runs-on: ubuntu-18.04
|
||
|
|
||
|
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: |
|
||
|
python ceidg.py
|
||
|
- name: Commit files
|
||
|
run: |
|
||
|
git config --local user.email "github.action@vane.pl"
|
||
|
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 }}
|