Archived
1
0
Fork 0

Create update-poetry.yml

This commit is contained in:
ZoruaFox 2024-01-11 23:07:34 +08:00 committed by GitHub
parent 2d7ea7178d
commit 071942488a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

42
.github/workflows/update-poetry.yml vendored Normal file
View file

@ -0,0 +1,42 @@
name: Update Dependencies
on:
workflow_dispatch:
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install poetry
run: |
pip install poetry
- name: Update dependencies
run: |
poetry update
- name: Commit changes
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add .
git commit -m "Update dependencies"
git push
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update dependencies"
branch: update-dependencies
title: "Update dependencies"
body: "This pull request updates the dependencies based on the latest versions from the poetry repository."