From 1657b696931ed34ef65b7ec14c10be000615f3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=96=D1=83=D0=BA=D0=BE?= =?UTF-8?q?=D0=B2?= <33721692+LeaveMyYard@users.noreply.github.com> Date: Sun, 28 May 2023 13:32:02 +0300 Subject: Add token to check-latest, autoset version to CLI --- .github/workflows/build-on-release.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build-on-release.yml b/.github/workflows/build-on-release.yml index 55eacd6..f4abc61 100644 --- a/.github/workflows/build-on-release.yml +++ b/.github/workflows/build-on-release.yml @@ -61,6 +61,10 @@ jobs: mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles + - name: Set version in code + run: | + awk 'NR==3{$0="__version__\"'${{ github.ref_name }}'\""}1' ./robusta_krr/__init__.py > temp && mv temp ./robusta_krr/__init__.py + - name: Build with PyInstaller shell: bash run: | @@ -115,6 +119,7 @@ jobs: - id: check-latest uses: pozetroninc/github-action-get-latest-release@v0.7.0 with: + token: ${{ secrets.GITHUB_TOKEN }} repository: ${{ github.repository }} excludes: prerelease, draft -- cgit v1.2.3