This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
Updating functions.py #97
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: Updating functions.py | |
on: | |
schedule: | |
- cron: "0 0 * * *" # run at the start of every day | |
workflow_dispatch: | |
jobs: | |
update-functions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checking out repository code | |
uses: actions/checkout@v3 | |
- name: Cloning functions repo | |
run: git clone https://github.com/eupnea-project/python-os-functions | |
- name: Updating functions.py | |
run: cp ./python-os-functions/functions.py ./functions.py | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
# Disable setting repo owner as commit author | |
commit_user_name: github-actions[bot] | |
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com | |
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
# Optional. Commit message for the created commit. | |
# Defaults to "Apply automatic changes" | |
commit_message: "chore: update functions.py" | |
# Optional glob pattern of files which should be added to the commit | |
# Defaults to all (.) | |
# See the `pathspec`-documentation for git | |
# - https://git-scm.com/docs/git-add#Documentation/git-add.txt-ltpathspecgt82308203 | |
# - https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec | |
file_pattern: 'functions.py' |