Skip to content

Commit

Permalink
chore: introduce tagpr (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hironori Yamamoto authored Mar 10, 2023
1 parent f8e255b commit b8f51a8
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 43 deletions.
30 changes: 0 additions & 30 deletions .github/release-drafter.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/release-drafter.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: tagpr
on:
push:
branches:
- main

jobs:
tagpr:
runs-on: ubuntu-latest
outputs:
tagpr-tag: ${{ steps.run-tagpr.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Run tagpr
id: run-tagpr
uses: Songmu/tagpr@v1
35 changes: 35 additions & 0 deletions .tagpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# config file for the tagpr in git config format
# The tagpr generates the initial configuration, which you can rewrite to suit your environment.
# CONFIGURATIONS:
# tagpr.releaseBranch
# Generally, it is "main." It is the branch for releases. The tagpr tracks this branch,
# creates or updates a pull request as a release candidate, or tags when they are merged.
#
# tagpr.versionFile
# Versioning file containing the semantic version needed to be updated at release.
# It will be synchronized with the "git tag".
# Often this is a meta-information file such as gemspec, setup.cfg, package.json, etc.
# Sometimes the source code file, such as version.go or Bar.pm, is used.
# If you do not want to use versioning files but only git tags, specify the "-" string here.
# You can specify multiple version files by comma separated strings.
#
# tagpr.vPrefix
# Flag whether or not v-prefix is added to semver when git tagging. (e.g. v1.2.3 if true)
# This is only a tagging convention, not how it is described in the version file.
#
# tagpr.changelog (Optional)
# Flag whether or not changelog is added or changed during the release.
#
# tagpr.command (Optional)
# Command to change files just before release.
#
# tagpr.tmplate (Optional)
# Pull request template in go template format
#
# tagpr.release (Optional)
# GitHub Release creation behavior after tagging [true, draft, false]
# If this value is not set, the release is to be created.
[tagpr]
vPrefix = true
releaseBranch = main
versionFile = redash-searcher-sync/Cargo.toml,redash-searcher-web/package.json

0 comments on commit b8f51a8

Please sign in to comment.