-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 977 Bytes
/
relock.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update Dependencies
on:
schedule:
# Runs at 09:00 UTC every Friday
- cron: '0 9 * * 5'
workflow_dispatch:
jobs:
relock:
env:
NEW_BRANCH_NAME:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
run: python -m pip install poetry
- name: Update dependencies
run: poetry lock
- name: Generate branch name
run: echo "NEW_BRANCH_NAME=relock-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
title: Update dependencies
body: |
Automated dependency update
branch: ${{ env.NEW_BRANCH_NAME }}
commit-message: Update dependencies