Skip to content

Update RHCOS version mapping #823

Update RHCOS version mapping

Update RHCOS version mapping #823

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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.1
# 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@6cd32fd93684475c31847837f87bb135d40a2b79 # v7.0.3
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