-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.65 KB
/
version-bump.yml
File metadata and controls
58 lines (51 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Version Bump
on:
workflow_dispatch:
inputs:
bump_type:
description: "Select the type"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
version_bump:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Bump version of datex
id: bump_version_datex
run: deno run -A .github/tools/version-bump.ts crates/datex ${{ inputs.bump_type }}
- name: Bump version of datex-cli
id: bump_version_cli
run: deno run -A .github/tools/version-bump.ts crates/datex-cli ${{ inputs.bump_type }}
- name: Bump version of datex-native
id: bump_version_native
run: deno run -A .github/tools/version-bump.ts crates/datex-native ${{ inputs.bump_type }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
env:
NEW_VERSION: ${{ steps.bump_version_datex.outputs.NEW_VERSION }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Bump version to ${{ env.NEW_VERSION }}"
title: "Release (${{ env.NEW_VERSION }})"
body: "This PR bumps the version of datex to ${{ env.NEW_VERSION }}."
draft: true
branch: "release/${{ env.NEW_VERSION }}"
delete-branch: true
labels: |
release
nightly
reviewers: jonasstrehle,benStre