Skip to content

.github/workflows/schedule.yml #2413

.github/workflows/schedule.yml

.github/workflows/schedule.yml #2413

Workflow file for this run

on:
push:
branches: ["main"]
workflow_dispatch:
permissions: write-all
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout repo content
uses: actions/checkout@v3 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v4
with:
python-version: 3.12.1 #install the python needed
- name: install python packages
run: |
pip install PyGithub pandas Pillow
- name: execute py script # run the run.py to get the latest data
env:
EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
EMAIL_RECIPIENT: ${{ secrets.EMAIL_RECIPIENT }}
GITHUB_TOKEN: ${{ github.token }}
run: |
python generate_json.py -t ${{ secrets.GITHUB_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v4
env:
EMAIL_ADDRESS: ${{ secrets.EMAIL_ADDRESS }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
EMAIL_RECIPIENT: ${{ secrets.EMAIL_RECIPIENT }}
GITHUB_TOKEN: ${{ github.token }}
with:
commit_message: Automated Change
# Optional. Options used by `git-commit`.
# See https://git-scm.com/docs/git-commit#_options
commit_options: '--no-verify --signoff'
file_pattern: 'apps.json index.html bundleId.csv icons/*'
# Optional commit user and author settings
commit_user_name: My GitHub Actions Bot # defaults to "github-actions[bot]"
commit_user_email: [email protected] # defaults to "41898282+github-actions[bot]@users.noreply.github.com"
commit_author: Author <[email protected]> # defaults to author of the commit that triggered the run
push_options: '--force'