Skip to content

Commit 8a0fb2e

Browse files
committed
correct pr text
1 parent 5ded7b1 commit 8a0fb2e

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/dep_toxcore_jni.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,33 @@ jobs:
2828
- name: check for changes
2929
run: git diff || echo "no changes"
3030

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
3338
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
3550
3651
- name: cleanup
3752
run: rm -f output.txt
3853

3954
- name: Create Pull Request
4055
uses: peter-evans/create-pull-request@v6
4156
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 }}
4358
branch: create-pull-request/toxcorejni
4459
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

Comments
 (0)