add testing workflow
This commit is contained in:
35
.gitea/workflows/bumptest.yml
Normal file
35
.gitea/workflows/bumptest.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Bump version
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
bump-type:
|
||||
description: 'Bump type'
|
||||
required: true
|
||||
default: 'patch'
|
||||
type: choice
|
||||
options:
|
||||
- major
|
||||
- minor
|
||||
- patch
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Bump version
|
||||
id: bump
|
||||
uses: callowayproject/bump-my-version@master
|
||||
env:
|
||||
BUMPVERSION_TAG: "true"
|
||||
with:
|
||||
args: ${{ inputs.bump-type }}
|
||||
github-token: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
- name: Check
|
||||
if: steps.bump.outputs.bumped == 'true'
|
||||
run: |
|
||||
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!"
|
||||
Reference in New Issue
Block a user