-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7296fe
commit 6d3b6f9
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Update Dependencies | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # Run every Sunday at midnight | ||
workflow_dispatch: # Allows you to manually trigger the workflow | ||
|
||
jobs: | ||
update-dependencies: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Update dependencies | ||
run: | | ||
poetry update | ||
poetry lock --no-update | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email [email protected] | ||
git config --local user.name mikel-brostrom | ||
git add . | ||
git commit -m "Update dependencies" | ||
- name: Push changes | ||
run: git push origin HEAD:dependabot/update-dependencies | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: dependabot/update-dependencies | ||
title: "Update dependencies" | ||
body: "This is an automated pull request to update dependencies." |