Skip to content

Commit c65f036

Browse files
attempt to fix workflow
1 parent 141aec6 commit c65f036

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,16 @@ jobs:
3939
with:
4040
name: raw-tarballs
4141
- name: Compute release tag
42-
run: sudo bash /home/runner/work/udroid-download/udroid-download/.github/scripts/compute-release-tag.sh
42+
run: |
43+
udroid_version=$(git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
44+
https://github.com/RandomCoderOrg/ubuntu-on-android \
45+
| tail -n1 | cut -d / -f 3 | cut -d v -f 2- )
46+
udroid_download=$(
47+
git -c 'versionsort.suffix=-' ls-remote --tags --sort='v:refname' \
48+
https://github.com/RandomCoderOrg/udroid-download \
49+
| tail -n1 | cut -d / -f 3
50+
)
51+
echo "VERSIONTAG=V${udroid_version}${BUILD_TYPE}R$((${udroid_download: -1} + 1))" >> $GITHUB_ENV
4352
- name: Generate release notes
4453
run: sudo bash /home/runner/work/udroid-download/.github/scripts/generate-release-notes.sh
4554
- name: Create Release

0 commit comments

Comments
 (0)