diff options
| 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 |
| commit | 1657b696931ed34ef65b7ec14c10be000615f3ee (patch) | |
| tree | 6b1def64362367f7a75839ec1f11fb01f9a1fcdd /.github | |
| parent | d5999887ab529f72e98828f7b2bc7a8e55c13be6 (diff) | |
Add token to check-latest, autoset version to CLI
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build-on-release.yml | 5 |
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 |
