Skip to content

update package versions from OBS and external files #673

update package versions from OBS and external files

update package versions from OBS and external files #673

---
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/*