Bump Nightly Version #4
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: Bump Nightly Version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Nightly version number (e.g., 0.12.0-nightly-20241230)' | |
required: true | |
type: string | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22 | |
- name: Install dependencies | |
run: npm install | |
- name: Call update scripts | |
run: | | |
VERSION=${{ github.event.inputs.version }} | |
.github/scripts/release-nightly.sh $VERSION | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "version docs to ${{ github.event.inputs.version }}" | |
title: "chore: bump nightly version to ${{ github.event.inputs.version }}" | |
body: "This PR updates the docs to version ${{ github.event.inputs.version }}." | |
branch: "version-docs-${{ github.event.inputs.version }}" | |
base: main | |
delete-branch: true |