-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
3150520
commit 6ecc29f
Showing
1 changed file
with
9 additions
and
3 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 |
---|---|---|
|
@@ -27,6 +27,9 @@ jobs: | |
with: | ||
python-version: '3.11' # Use the Python version appropriate to your project | ||
|
||
- name: Generate Date String | ||
run: echo "BRANCH_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
|
||
- name: Install Poetry | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
|
@@ -43,16 +46,19 @@ jobs: | |
run: | | ||
git config --global user.name 'CI Bot' | ||
git config --global user.email '[email protected]' | ||
git checkout -b update-dependencies-$(date +'%Y-%m-%d') | ||
- name: Create and switch to a new branch | ||
run: | | ||
git checkout -b update-dependencies-${{ env.BRANCH_DATE }} | ||
git add poetry.lock | ||
git commit -m "Update dependencies" || echo "No changes to commit" | ||
git push --set-upstream origin update-dependencies-$(date +'%Y-%m-%d') | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
branch: update-dependencies-$(date +'%Y-%m-%d') # The branch to push changes | ||
title: "Update dependencies $(date +'%Y-%m-%d')" | ||
branch: update-dependencies-${{ env.BRANCH_DATE }} | ||
title: "Update dependencies for ${{ env.BRANCH_DATE }}" | ||
body: | | ||
Updates dependencies to their latest versions. | ||
labels: dependencies,automated PR | ||
|