name: Get ecb fx data on: workflow_dispatch: schedule: - cron: "0 16 * * *" jobs: stale: runs-on: ubuntu-22.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 ecb.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 }}