File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 11
11
required : true
12
12
default : (for example, 0.1.0)
13
13
14
+ permissions :
15
+ actions:write
16
+
14
17
jobs :
15
18
release :
16
19
name : Prepare Jib release
17
20
runs-on : ubuntu-latest
18
21
steps :
19
22
- name : Check out code
20
23
uses : actions/checkout@v4
21
- with :
22
- fetch-depth : 0
23
24
- name : Set up JDK 8
24
25
uses : actions/setup-java@v3
25
26
with :
45
46
# TODO: run integration test? (Requries auth with GCP.)
46
47
./gradlew clean build --stacktrace
47
48
48
- - name : Create and push tag
49
- run : |
50
- git config user.email ${{ github.actor }}@users.noreply.github.com
51
- git config user.name ${{ github.actor }}
52
- TAG_NAME="v$(date +'%Y%m%d-%H%M%S')" # Example: v20231027-153000
53
- git tag "$TAG_NAME"
54
- git push origin "$TAG_NAME"
55
- env :
56
- GITHUB_TOKEN : ${{ secrets.JIB_RELEASE_SECRET }} # Use GitHub's built-in token
57
-
58
49
- name : Run Gradle release
59
50
run : |
60
51
git checkout -b ${{ github.event.inputs.project }}-release-v${{ github.event.inputs.release_version }}
73
64
./gradlew "${PROJECT}":release \
74
65
-Prelease.useAutomaticVersion=true \
75
66
-Prelease.releaseVersion=${{ github.event.inputs.release_version }}
76
- env :
77
- GITHUB_TOKEN : ${{ secrets.JIB_RELEASE_SECRET }}
78
67
79
68
- name : Create pull request
80
69
You can’t perform that action at this time.
0 commit comments