mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Delete Generate.yml
This commit is contained in:
parent
df73e79ee4
commit
6082e68a1f
38
.github/workflows/Generate.yml
vendored
38
.github/workflows/Generate.yml
vendored
@ -1,38 +0,0 @@
|
|||||||
name: Generate poetry.lock
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
paths:
|
|
||||||
- 'pyproject.toml'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
poetry_lock:
|
|
||||||
name: Generate
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Set up Python
|
|
||||||
uses: he0119/setup-python@main
|
|
||||||
with:
|
|
||||||
python-version: "3.9"
|
|
||||||
- name: poetry lock
|
|
||||||
run: |
|
|
||||||
rm -f poetry.lock
|
|
||||||
sed -i.bak "8,11d" pyproject.toml
|
|
||||||
poetry lock
|
|
||||||
mv pyproject.toml.bak pyproject.toml
|
|
||||||
# commit
|
|
||||||
- name: commit file
|
|
||||||
run: |
|
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
||||||
git config --local user.name "github-actions[bot]"
|
|
||||||
git add poetry.lock
|
|
||||||
git commit -m "Auto generate poetry.lock" -a
|
|
||||||
# push
|
|
||||||
- name: push changes
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
Loading…
Reference in New Issue
Block a user