Skip to content

Commit

Permalink
Use workflow_dispatch to bump releases (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
SVilgelm committed Nov 8, 2021
1 parent b5e382e commit 19b4675
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: "New Release"

on:
milestone:
types: [closed]
workflow_dispatch:
inputs:
version:
description: "Tag name in semver format. Example: v0.0.1"
required: true
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -12,7 +15,7 @@ env:

jobs:
bump-version:
if: github.event_name == 'milestone'
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -34,17 +37,11 @@ jobs:
- name: Create Tag
run: |
docker run --rm -v $PWD:/mount -w /mount svtools/bumptag:latest ${{ github.event.milestone.title }}
docker run --rm -v $PWD:/mount -w /mount svtools/bumptag:latest ${{ github.event.inputs.version }}
- name: Push Tag
run: git push origin --tags

- name: Create Milestone
uses: sv-tools/create-milestone-action@v1.1.0
with:
token: "${{ secrets.GITHUB_TOKEN }}"
title: Next

release-lib:
if: github.event_name == 'push'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 19b4675

Please sign in to comment.