summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-28 13:32:02 +0300
committerПавел Жуков <33721692+LeaveMyYard@users.noreply.github.com>2023-05-28 13:32:02 +0300
commit1657b696931ed34ef65b7ec14c10be000615f3ee (patch)
tree6b1def64362367f7a75839ec1f11fb01f9a1fcdd /.github/workflows
parentd5999887ab529f72e98828f7b2bc7a8e55c13be6 (diff)
Add token to check-latest, autoset version to CLI
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-on-release.yml5
1 files changed, 5 insertions, 0 deletions
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