Skip to content

Commit ccd734e

Browse files
HassanBakerHassan Baker
andauthored
tag repo on merge + fix github actions file names so they don't break on windows (#23)
* test tag on merge * run on branch * run * use pat * cleanup --------- Co-authored-by: Hassan Baker <[email protected]>
1 parent 4e52730 commit ccd734e

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed
File renamed without changes.
File renamed without changes.

.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+
- master
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/[email protected]
23+
env:
24+
TAG_PREFIX: 'v'
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.

0 commit comments

Comments
 (0)