fix(ssacl): geocn #8
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: cook | |
on: | |
workflow_dispatch: | |
push: | |
schedule: | |
- cron: "0 */12 * * *" | |
jobs: | |
cooking: | |
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' | |
- name: fire | |
run: | | |
pip install ./dev/ && \ | |
mkdir ./temp && \ | |
DEST=./temp genpac --config=./dev/example/config.ini | |
- name: clean and copy | |
run: | | |
find ./cooked -maxdepth 1 -type f -name "*.*" ! -name "README.md" ! -name ".gitignore" -delete && \ | |
cp ./temp/* ./cooked/ | |
- name: commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
repository: ./cooked | |
commit_message: update | |
push_options: '--force' |