-
Notifications
You must be signed in to change notification settings - Fork 32
51 lines (44 loc) · 1.72 KB
/
update-versions-and-files.yml
File metadata and controls
51 lines (44 loc) · 1.72 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: update package versions from OBS and external files
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
update-files:
runs-on: ubuntu-latest
container: registry.opensuse.org/opensuse/bci/bci-ci:latest
steps:
- name: checkout source code
uses: actions/checkout@v6
- uses: actions/cache@v5
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}
- name: fix the file permissions of the repository
run: chown -R $(id -un):$(id -gn) .
- name: install python dependencies
run: poetry install
- name: run version update
run: poetry run update-versions
# update package versions first so that update-files.sh fetches the files
# based on the new versions
- name: run update-files.sh
run: ./update-files.sh
- name: create a pull request with the updated versions and files
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v7
with:
# separate token https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
token: ${{ secrets.CHECKOUT_TOKEN }}
delete-branch: true
commit-message: "🤖: Update package versions and external files"
reviewers: dirkmueller,alexandrevicenzi
title: "🤖: Update package versions and files"
body: |
This is an automated update via poetry run update-versions and ./update-files.sh
base: main
branch: create-pull-request/update-versions-and-files
add-paths: |
src/bci_build/package/*