-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (42 loc) · 1.45 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
43
44
45
46
47
48
49
name: Update RHCOS version mapping
on:
# Triggers the workflow every day
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
update-certification:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
name: Update offline mapping of RHCOS to OCP version
runs-on: ubuntu-22.04
env:
SHELL: /bin/bash
steps:
- name: Check out code
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
ref: main
- name: Execute `make update-rhcos-versions`
run: make update-rhcos-versions
- name: Set up Go 1.23
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.23.2
# 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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
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