Skip to content

Split API into a standalone Go module #7

Split API into a standalone Go module

Split API into a standalone Go module #7

# Copyright NVIDIA CORPORATION
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: API Release Checks
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
permissions:
contents: read
jobs:
api-version-unpublished:
if: |
contains(github.event.pull_request.title, 'operator') &&
contains(github.event.pull_request.title, 'version') &&
contains(github.event.pull_request.title, 'bump')
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
persist-credentials: false
- name: Get Golang version
run: |
GOLANG_VERSION=$(grep "GOLANG_VERSION ?=" versions.mk)
echo "GOLANG_VERSION=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> "${GITHUB_ENV}"
- name: Install Go
uses: actions/setup-go@v7
with:
go-version: ${{ env.GOLANG_VERSION }}
- name: Check that API version is unpublished
run: make validate-api-version-unpublished