-
Notifications
You must be signed in to change notification settings - Fork 97
36 lines (36 loc) · 1.2 KB
/
bump_repos.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: 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