Update chart #364
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 chart | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 5 * * *" | |
permissions: | |
contents: write | |
jobs: | |
update_chart: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install . | |
pip install jupyter nbconvert python-dotenv | |
- name: Run notebook | |
run: jupyter nbconvert --to notebook --execute --inplace bitcoin.ipynb | |
- name: Get current time | |
uses: josStorer/get-current-time@v2 | |
id: current-time | |
- name: Commit and push changes | |
uses: giocaizzi/python-dev-actions/.github/actions/commit@main | |
with: | |
message: "Update chart:${{ steps.current-time.outputs.readableTime }}" | |
github-token: ${{ secrets.GITHUB_TOKEN }} |