Bump repositories #450
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump repositories | |
on: | |
schedule: | |
- cron: 0 20 * * * | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install earthly | |
uses: Luet-lab/luet-install-action@v1 | |
with: | |
repository: quay.io/kairos/packages | |
packages: utils/earthly | |
- name: Old packages | |
run: | | |
earthly +base-image --VARIANT=standard --FLAVOR=opensuse-leap --K3S_VERSION=latest | |
mv build/versions.yaml build/versions.old.yaml | |
- name: Bump cos 🔧 | |
run: earthly +bump-repositories | |
- name: New packages | |
run: | | |
earthly +base-image --VARIANT=standard --FLAVOR=opensuse-leap --K3S_VERSION=latest | |
mv build/versions.yaml build/versions.new.yaml | |
- name: Diff versions and generate pr message | |
run: .github/repo-diff-msg.sh | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
push-to-fork: ci-robbot/c3os | |
commit-message: ':arrow_up: Update repositories' | |
title: ':arrow_up: Update repositories' | |
body-path: pr-message | |
signoff: true |