change package version format to ignore changes in this repository
Some checks failed
AppImage Build / build-appimage (push) Failing after 23s

The previous format made the package screen look a little confusing,
as all Chawan versions were there, but the most recent was at the bottom,
and using git short hashes would technically force people to go look up
the right version from Chawan git log. This process is clearer, but also
adds a small risk that a change in this repository that affects the AppImage
in some material way gets a skipped build until upstream changes something.
We will ignore this risk, and assume that I delete the package manually to
reproduce it in the event this happens.
This commit is contained in:
Emil Lerch 2025-01-13 12:41:05 -08:00
parent b4e4f8af2c
commit 1ffb0ca842
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 6 additions and 4 deletions

View File

@ -26,10 +26,11 @@ jobs:
- name: Get parameters
id: vars
run: |
shorthash="$(cd chawan && git rev-parse --short HEAD)"
echo "upstream=$(cd chawan && git rev-parse HEAD)" | tee -a $GITHUB_OUTPUT
echo "shorthash=$(cd chawan && git rev-parse --short HEAD)" | tee -a $GITHUB_OUTPUT
echo "shorthash=$shorthash" | tee -a $GITHUB_OUTPUT
echo "imagename=Chawan-aarch64-$(cd chawan && git rev-parse --short HEAD).AppImage" | tee -a $GITHUB_OUTPUT
echo "packageurl=https://git.lerch.org/api/packages/lobo/generic/chawan-appimage/$(git rev-parse --short HEAD)/Chawan-aarch64-$(cd chawan && git rev-parse --short HEAD).AppImage" | tee -a $GITHUB_OUTPUT
echo "packageurl=https://git.lerch.org/api/packages/lobo/generic/chawan-appimage/${shorthash}/Chawan-aarch64-${shorthash}.AppImage" | tee -a $GITHUB_OUTPUT
- name: Check for built package
id: package
run: |

View File

@ -21,10 +21,11 @@ jobs:
- name: Get parameters
id: vars
run: |
shorthash="$(cd chawan && git rev-parse --short HEAD)"
echo "upstream=$(cd chawan && git rev-parse HEAD)" | tee -a $GITHUB_OUTPUT
echo "shorthash=$(cd chawan && git rev-parse --short HEAD)" | tee -a $GITHUB_OUTPUT
echo "shorthash=$shorthash" | tee -a $GITHUB_OUTPUT
echo "imagename=Chawan-x86_64-$(cd chawan && git rev-parse --short HEAD).AppImage" | tee -a $GITHUB_OUTPUT
echo "packageurl=https://git.lerch.org/api/packages/lobo/generic/chawan-appimage/$(git rev-parse --short HEAD)/Chawan-x86_64-$(cd chawan && git rev-parse --short HEAD).AppImage" | tee -a $GITHUB_OUTPUT
echo "packageurl=https://git.lerch.org/api/packages/lobo/generic/chawan-appimage/${shorthash}/Chawan-x86_64-${shorthash}.AppImage" | tee -a $GITHUB_OUTPUT
- name: Check for built package
id: package
run: |