Skip to content

Commit f7edefc

Browse files
HassanBakerHassan Baker
andauthored
fix workflow file names and automate tagging (#20)
Co-authored-by: Hassan Baker <hassan.baker@corelight.com>
1 parent 32e95a2 commit f7edefc

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.github/workflows/tag-bump.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Bump version
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
if: github.event.pull_request.merged == true
12+
runs-on: ubuntu-22.04
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.event.pull_request.merge_commit_sha }}
19+
fetch-depth: '0'
20+
21+
- name: Bump version and push tag
22+
uses: anothrNick/github-tag-action@1.75.0
23+
env:
24+
TAG_PREFIX: 'v'
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)