Skip to content

Commit 9474f09

Browse files
committed
feat: Add Patch Release workflow
1 parent ccf9647 commit 9474f09

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/patch-release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CodeQL Patch Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
mode:
7+
description: "Auto-release mode"
8+
required: false
9+
type: string
10+
default: "patch"
11+
12+
jobs:
13+
patch-release:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: "Checkout"
18+
uses: actions/checkout@v4
19+
20+
- name: Get Token
21+
id: get_workflow_token
22+
uses: peter-murray/workflow-application-token-action@v3
23+
with:
24+
application_id: ${{ secrets.BYTELABS_APP_ID }}
25+
application_private_key: ${{ secrets.BYTELABS_APP_KEY }}
26+
27+
- name: "Patch Release Me"
28+
run: |
29+
cargo install patch-release-me
30+
31+
patch-release-me bump -m "${{ inputs.mode }}"
32+
33+
- name: Create Pull Request
34+
uses: peter-evans/create-pull-request@v6
35+
with:
36+
token: ${{ steps.get_workflow_token.outputs.token }}
37+
title: "Chore: Auto Update new Release"
38+
commit-message: "[chore]: Auto Patch new Release"
39+
body: |
40+
This is automatically created as a chore to patch and update the release.
41+
branch: "auto-patch-release"
42+
labels: "version"
43+
delete-branch: true
44+

0 commit comments

Comments
 (0)