Skip to content

Commit

Permalink
Update actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
T3M1N4L authored Aug 24, 2024
1 parent b5a3196 commit 058923e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@ name: ClassUpdate evy12hrs
on:
schedule:
- cron: '0 */12 * * *' # every 12 hours
workflow_dispatch: # Allows manual triggering

jobs:
build:
runs-on: ubuntu-latest
steps:

- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner
- name: Checkout repo content
uses: actions/checkout@v2

- name: setup python
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # install the python version needed
python-version: '3.11'

- name: execute py script # run replace.py
- name: Execute py script
run: |
cd ./ClassUpdate && python ./replace.py DEFAULT -y
- name: commit files
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated logs" --allow-empty)
- name: push changes
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 058923e

Please sign in to comment.