Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
interlark committed Jul 4, 2022
1 parent 4f146e9 commit db19d22
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -28,11 +28,22 @@ jobs:
with:
ref: gui

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Get the version
id: get_version
run: |
echo ::set-output name=version::$(cat ustvgo_iptv.py \
| grep "^VERSION = '\([0-9.]\+\)'" | grep -o "[0-9.]\+")
echo ::set-output name=version::$(python -m pip freeze \
| grep ustvgo-iptv | awk -F '==' '{print $2}')
shell: bash

- name: Get the tag
@@ -47,17 +58,6 @@ jobs:
script: |
core.setFailed('tag and version are not equivalent!')
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Build standalone app
run: |
python scripts/build.py

0 comments on commit db19d22

Please sign in to comment.