fix/release-workflow (#763)
* fix/release-workflow * Potential fix for code scanning alert no. 20: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Christian Beutel <> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
39
.github/workflows/release_request.yaml
vendored
Normal file
39
.github/workflows/release_request.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
name: Release Request
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: "The version to release (e.g., 0.12.0)"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
create-pr:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
- name: Bump versions
|
||||
run: |
|
||||
VERSION=${{ github.event.inputs.version }}
|
||||
cd web && npm version $VERSION --no-git-tag-version && cd ..
|
||||
cd docs && npm version $VERSION --no-git-tag-version && cd ..
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v6
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: "chore: release v${{ github.event.inputs.version }}"
|
||||
branch: "release/v${{ github.event.inputs.version }}"
|
||||
title: "Release v${{ github.event.inputs.version }}"
|
||||
body: "This PR bumps the version. Merging this will trigger Docker builds and a GitHub Release."
|
||||
base: main
|
||||
Reference in New Issue
Block a user