Skip to content

Update RHCOS version mapping #922

Update RHCOS version mapping

Update RHCOS version mapping #922

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: main
- name: Execute `make update-rhcos-versions`
run: make update-rhcos-versions
- name: Set up Go 1.23
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version: 1.23.4
# 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