File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 18
18
steps :
19
19
- name : Check out code
20
20
uses : actions/checkout@v4
21
+ with :
22
+ fetch-depth : 0
21
23
- name : Set up JDK 8
22
24
uses : actions/setup-java@v3
23
25
with :
42
44
run : |
43
45
# TODO: run integration test? (Requries auth with GCP.)
44
46
./gradlew clean build --stacktrace
47
+ - name : Configure Git user
48
+ run : |
49
+ git config --global user.email "[email protected] "
50
+ git config --global user.name "Your Bot Name"
51
+
52
+ - name : Create and push tag
53
+ run : |
54
+ TAG_NAME="v$(date +'%Y%m%d-%H%M%S')" # Example: v20231027-153000
55
+ git tag "$TAG_NAME"
56
+ git push origin "$TAG_NAME"
57
+ env :
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Use GitHub's built-in token
45
59
46
60
- name : Run Gradle release
47
61
run : |
You can’t perform that action at this time.
0 commit comments