File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 8
8
workflow_dispatch :
9
9
10
10
jobs :
11
- tag :
11
+ bump-version :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
@@ -19,13 +19,13 @@ jobs:
19
19
uses : actions/setup-go@v4
20
20
with :
21
21
go-version : 1.21.x
22
-
22
+
23
23
- name : Bump version in banner.go
24
24
working-directory : internal/runner
25
25
run : |
26
26
curl -LO https://raw.githubusercontent.com/projectdiscovery/utils/main/scripts/versionbump/versionbump.go
27
27
go run versionbump.go -file banner.go -var version -part patch
28
-
28
+
29
29
- name : Create local changes
30
30
working-directory : internal/runner
31
31
run : |
44
44
github_token : ${{ secrets.GITHUB_TOKEN }}
45
45
branch : ${{ github.ref }}
46
46
47
+ tag-release :
48
+ runs-on : ubuntu-latest
49
+ needs : bump-version
50
+ steps :
51
+ - uses : actions/checkout@v3
52
+ with :
53
+ fetch-depth : 0
54
+
47
55
- name : Get Commit Count
48
56
id : get_commit
49
57
run : git rev-list `git rev-list --tags --no-walk --max-count=1`..HEAD --count | xargs -I {} echo COMMIT_COUNT={} >> $GITHUB_OUTPUT
54
62
uses :
mathieudutour/[email protected]
55
63
with :
56
64
github_token : ${{ secrets.PDTEAMX_PAT }}
57
-
65
+
58
66
- name : Create a GitHub release
59
67
if : ${{ steps.get_commit.outputs.COMMIT_COUNT > 0 }}
60
68
uses : actions/create-release@v1
You can’t perform that action at this time.
0 commit comments