iScreenVIP #312
Workflow file for this run
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
on: | |
release: | |
types: [published] | |
push: | |
branches: ["main"] | |
permissions: write-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 # checkout the repository content to github runner. | |
with: | |
ref: main | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 #install the python needed | |
- name: install python packages | |
run: | | |
pip install PyGithub pandas mistletoe lxml beautifulsoup4 | |
- 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 apps_esign.json 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' | |
# - name: commit files | |
# run: | | |
# git config --local user.email "[email protected]" | |
# git config --local user.name "GitHub Action" | |
# git add -A | |
# git commit -m "update apps.json" -a | |
# - name: push changes | |
# uses: ad-m/[email protected] | |
# with: | |
# github_token: ${{ secrets.SECRET_NAME }} | |
# branch: main | |