Skip to content

Commit 70e77d5

Browse files
authored
Merge pull request #1507 from Anselmoo/fix/weekly-update
chore: Update `weekly-poetry-bot.yml`
2 parents 8e45af8 + af6cde2 commit 70e77d5

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

.github/workflows/weekly-poetry-bot.yml

+11-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ name: Weekly Poetry Update
22

33
on:
44
schedule:
5-
- cron: '0 0 * * 0' # Runs every Sunday at midnight
5+
# - cron: '0 0 * * 0' # Runs every Sunday at midnight
6+
- cron: '0 * * * *' # Runs every hour
67

78
jobs:
89
update-dependencies:
@@ -47,19 +48,16 @@ jobs:
4748
fi
4849
git push origin update-dependencies-$(date +%Y%m%d)
4950
50-
- name: Create Pull Request
51-
id: create_pr
52-
uses: peter-evans/create-pull-request@v6
53-
with:
54-
token: ${{ secrets.GITHUB_TOKEN }}
55-
branch: update-dependencies-$(date +%Y%m%d)
56-
title: "chore(deps): :arrows_counterclockwise: update dependencies $(date +%Y%m%d)"
57-
body: "This PR updates dependencies to their latest versions."
58-
labels: dependencies
59-
assignees: ${{ github.actor }}
60-
51+
- name: Create Pull Request via gh
52+
run: >-
53+
gh pr create --title "chore(deps): :arrows_counterclockwise: update dependencies $(date +%Y%m%d)"
54+
--body "This is an auto-generated pull request to update dependencies in poetry.lock."
55+
--base main
56+
--head update-dependencies-$(date +%Y%m%d)
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.auto_changelog }}
6159
- name: Set Auto PR
6260
run: |
6361
gh pr merge update-dependencies-$(date +%Y%m%d) --auto --rebase
6462
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
GITHUB_TOKEN: ${{ secrets.auto_changelog }}

0 commit comments

Comments
 (0)