-
Notifications
You must be signed in to change notification settings - Fork 33
42 lines (36 loc) · 1.12 KB
/
update-rhcos-mapping.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
37
38
39
40
41
42
name: Update RHCOS version mapping
on:
# Triggers the workflow every day
schedule:
- cron: "0 0 * * *"
jobs:
update-certification:
name: Update offline mapping of RHCOS to OCP version
runs-on: ubuntu-22.04
env:
SHELL: /bin/bash
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
ref: main
- name: Execute `make update-rhcos-versions`
run: make update-rhcos-versions
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.3
# This prevents any failures due to the updated rhcos_versions_map file from
# making it into the PR phase.
- name: Run unit tests
run: make test
- name: Create PR
uses: peter-evans/create-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.UPDATE_CERTIFIED_DB_TOKEN }}
with:
commit-message: Update RHCOS to OCP version map
title: Update RHCOS to OCP version map
body: |
- RHCOS version map update
branch: update-rhcos-map