Skip to content

Commit b845fc6

Browse files
committed
ci: auto-bumping tag when specific file updates
Signed-off-by: Camber Huang <[email protected]>
1 parent 01c46cf commit b845fc6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/bump-tag.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Bump tag on file update
2+
on:
3+
push:
4+
branches: [master]
5+
paths:
6+
- './*.sha256sum'
7+
workflow_dispatch: ~
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
bump:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3
18+
- name: Get current time
19+
uses: srfrnk/current-time@master
20+
id: current-time
21+
with:
22+
format: "YYYYMMDD"
23+
- name: Bump tag
24+
uses: anothrNick/[email protected]
25+
env:
26+
CUSTOM_TAG: ${{ steps.current-time.outputs.formattedTime }}
27+
DEFAULT_BRANCH: master
28+

0 commit comments

Comments
 (0)