🔥 Remove Update Lockfile and Requirements Workflow

This commit is contained in:
洛水居室 2023-04-28 09:24:24 +08:00
parent fea97e1241
commit fbe49453c7
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -1,42 +0,0 @@
name: Update Lockfile and Requirements
on:
pull_request:
types:
- labeled
jobs:
update-lockfile-and-requirements:
if: github.event.label.name == 'Update Lockfile and Requirements'
name: Update Lockfile and Requirements
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install Poetry
run: |
pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: |
rm -r poetry.lock
poetry install
- name: Update lockfile and requirements
run: |
poetry lock
poetry export --extras all --without-hashes --format=requirements.txt > requirements.txt
- name: Upload Lockfile and Requirements
uses: actions/upload-artifact@v3
with:
path: |
poetry.lock
requirements.txt