Skip to content

Commit c60a717

Browse files
authored
Merge pull request #2 from Rindrics/tagpr
2 parents 0e722d3 + 31e5a7f commit c60a717

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/tagpr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: tagpr
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
tagpr:
14+
name: Tag and Release PR
15+
runs-on: ubuntu-latest
16+
outputs:
17+
tagpr-tag: ${{ steps.tagpr.outputs.tag }}
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Run tagpr
23+
id: tagpr
24+
uses: Songmu/tagpr@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Output tag info
29+
if: steps.tagpr.outputs.tag != ''
30+
run: |
31+
echo "Created tag: ${{ steps.tagpr.outputs.tag }}"

.tagpr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tagpr]
2+
releaseBranch = "main"
3+
versionFile = "Cargo.toml"
4+
vPrefix = true
5+
changelog = true
6+
release = true
7+
majorLabels = tagpr:major
8+
minorLabels = tagpr:minor

0 commit comments

Comments
 (0)