-
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 980 Bytes
/
increment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Increment value test
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'sbpp-windmill-dashboard/assets/theme_version.txt'
- 'sbpp-windmill-dashboard/version.json'
- '.github/**'
- 'assets/**'
- '**.md'
- '.gitignore'
jobs:
test:
name: Increment value test
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
token: ${{ secrets.PAT }}
- name: Increment value
uses: yoichiro/gh-action-increment-value@main
with:
target_directory: 'sbpp-windmill-dashboard/assets'
target_file: 'theme_version.txt'
prefix: '** '
suffix: ' **'
commit_message: 'Theme version updated to 0.3.'
- name: Next Version
uses: Piszmog/next-version@v1
with:
token: ${{ secrets.PAT }}
files: version.json