@@ -28,18 +28,33 @@ jobs:
28
28
- name : check for changes
29
29
run : git diff || echo "no changes"
30
30
31
- - name : get version info string
32
- id : version_info_str
31
+ # - name: get version info string
32
+ # id: version_info_str
33
+ # run: |
34
+ # (release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT
35
+
36
+ - name : check if toxcore update or witness checksums only
37
+ id : titletext_str
33
38
run : |
34
- (release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2) ; echo "release_tag=$release_tag" >> $GITHUB_OUTPUT)|| echo "release_tag=" >> $GITHUB_OUTPUT
39
+ git status 2>/dev/null|grep '^\+' 2>/dev/null|grep 'com.github.zoff99:pkgs_ToxAndroidRefImpl' 2>/dev/null
40
+ res=$?
41
+ if [ "$res""x" == "0x" ]; then
42
+ echo "jni version update"
43
+ release_tag=$(cat output.txt|grep '__VERSIONUPDATE__'|cut -d':' -f2)
44
+ echo "titletext=update toxcore JNI to $release_tag" >> $GITHUB_OUTPUT
45
+ else
46
+ echo "gradle witness checksums update"
47
+ echo "titletext=update gradle witness checksums" >> $GITHUB_OUTPUT
48
+ echo "release_tag=" >> $GITHUB_OUTPUT
49
+ fi
35
50
36
51
- name : cleanup
37
52
run : rm -f output.txt
38
53
39
54
- name : Create Pull Request
40
55
uses : peter-evans/create-pull-request@v6
41
56
with :
42
- commit-message : update toxcore JNI to ${{ steps.version_info_str .outputs.release_tag }} or just gradle witness checksums
57
+ commit-message : ${{ steps.titletext_str .outputs.titletext }}
43
58
branch : create-pull-request/toxcorejni
44
59
delete-branch : true
45
- title : update toxcore JNI to ${{ steps.version_info_str .outputs.release_tag }} or just gradle witness checksums
60
+ title : ${{ steps.titletext_str .outputs.titletext }}
0 commit comments