Skip to content

chore: bump k8s.io/apimachinery from 0.31.1 to 0.31.2 (#817) #7

chore: bump k8s.io/apimachinery from 0.31.1 to 0.31.2 (#817)

chore: bump k8s.io/apimachinery from 0.31.1 to 0.31.2 (#817) #7

Workflow file for this run

name: Create Docs PR
on:
push:
tags:
- 'v[0-9]+.[0-9]+.0' # run this workflow when a new minor version is published
permissions:
contents: write
pull-requests: write
jobs:
create-docs-pr:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.3.1
with:
egress-policy: audit
- name: Get version from tag
shell: bash
run: |
TAG="$(echo "${{ github.ref }}" | tr -d 'refs/tags/v')"
MAJOR_VERSION="$(echo "${TAG}" | cut -d '.' -f1)"
MINOR_VERSION="$(echo "${TAG}" | cut -d '.' -f2)"
echo "NEWVERSION=v${MAJOR_VERSION}.${MINOR_VERSION}.x" >> ${GITHUB_ENV}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Generate versioned docs
shell: bash
run: make version-docs
- name: Create release pull request
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
commit-message: "chore: Generate ${{ env.NEWVERSION }} docs"
title: "chore: Generate ${{ env.NEWVERSION }} docs"
branch: "release-${{ env.NEWVERSION }}"
base: "main"
signoff: true