Skip to content

Commit

Permalink
feat(action): add cook
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnLynn committed Jun 6, 2024
1 parent a675e62 commit d8f4613
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cook
on:
workflow_dispatch:
push:
schedule:
- cron: "0 */12 * * *"

jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Branch dev
uses: actions/checkout@v4
with:
ref: dev
path: dev
- name: Checkout Branch cooked
uses: actions/checkout@v4
with:
ref: cooked
path: cooked
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: |
pip install ./dev/ && \
DEST=./cooked genpac --config=./dev/example/config.ini
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: ./cooked
commit_message: Automated Change
push_options: '--force'

0 comments on commit d8f4613

Please sign in to comment.