chore: bump k8s.io/apimachinery from 0.28.4 to 0.29.0 (#448) #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@eb238b55efaa70779f274895e782ed17c84f2895 # 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 | |
with: | |
commit-message: "chore: Generate ${{ env.NEWVERSION }} docs" | |
title: "chore: Generate ${{ env.NEWVERSION }} docs" | |
branch: "release-${{ env.NEWVERSION }}" | |
base: "main" |