Skip to content

update package versions from OBS and external files #176

update package versions from OBS and external files

update package versions from OBS and external files #176

---
name: update package versions from OBS and external files
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-files:
runs-on: ubuntu-latest
container: ghcr.io/dcermak/bci-ci:latest
steps:
- name: checkout source code
uses: actions/checkout@v4
- uses: actions/cache@v4
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@v7
with:
token: ${{ secrets.CHECKOUT_TOKEN }}
delete-branch: true
commit-message: "🤖: Update package versions and external files"
reviewers: dirkmueller,alexandrevicenzi
assignees: dcermak
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/*