Skip to content

Commit

Permalink
Add bump version workflow (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelRipoll23 authored Jul 1, 2023
1 parent 00b9578 commit 9cd7455
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 40 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Bump version

on:
workflow_dispatch:
inputs:
channel:
type: choice
default: stable
description: Pick channel
options:
- alpha
- beta
- stable

new-build-for-prerelease:
type: boolean
default: true
description: New build for prerelease

jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Checkout branch
uses: actions/checkout@v3

- name: Generate tag
uses: ./
id: generate-tag-name
with:
channel: ${{ inputs.channel }}

- name: Update version
uses: reedyuk/[email protected]
with:
version: ${{ steps.generate-tag-name.outputs.tag-name }}

- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
branch: version/${{ steps.generate-tag-name.outputs.tag-name }}
commit-message: ${{ steps.generate-tag-name.outputs.tag-name }}
title: Bump version to ${{ steps.generate-tag-name.outputs.tag-name }}
body: Automated pull request triggered by a new release.
labels: new-release,ignore-for-release
reviewers: MiguelRipoll23
draft: true
40 changes: 0 additions & 40 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 9cd7455

Please sign in to comment.