Skip to content

Commit

Permalink
Merge pull request #21 from r7kamura/feature/release-workflow
Browse files Browse the repository at this point in the history
Use VERSION file to automate release
  • Loading branch information
r7kamura authored Dec 23, 2022
2 parents bd9b237 + 71fd65a commit b73bf6f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/bump-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: bump-request

on:
workflow_dispatch:
inputs:
version:
description: Version to change to.
required: true
type: string

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: r7kamura/bump-request@v0
with:
command: |
sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' VERSION
version: ${{ inputs.version }}
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: release

on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
branches:
- main

jobs:
release:
uses: r7kamura/workflows/.github/workflows/release-action.yml@main
uses: r7kamura/workflows/.github/workflows/release-action-with-version.yml@main
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.17.0

0 comments on commit b73bf6f

Please sign in to comment.