From db77b876bc6473a1b26f5191de99a5fb5f00294a Mon Sep 17 00:00:00 2001 From: Ace Date: Sun, 23 Jul 2023 20:46:24 +0200 Subject: [PATCH] Update tests.yml --- .github/workflows/tests.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 30eab65..06b573c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -88,13 +88,20 @@ jobs: mv ${{ steps.build_image.outputs.image }} inkycal_os.img xz -0 -T 0 -v inkycal_os.img ls + + - name: Get latest release version + run: | + export tag="$(curl -s https://api.github.com/repos/aceinnolab/Inkycal/releases/latest | jq -r '.tag_name')" + echo "version=${tag}" >> $GITHUB_ENV - name: Upload Raspberry Pi OS Image if: success() # Only upload the image if the tests were successful uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: 2.0.2 - files: inkycal_os.img + tag_name: ${{ env.version }} + files: inkycal_os.img/inkycal_os.img generate-docs: name: Generate Docs