Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use VERSION file to automate release #21

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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