Skip to content

Cache Data

Cache Data #34564

Workflow file for this run

name: Cache Data
on:
# push:
# branches:
# - main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Run Script
run: |
# python test.py
python main.py
- name: Push changes of Data directory
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b cache
git add Data
git commit -m "Update Data"
git push origin cache -f