Skip to content

Commit 3ed5748

Browse files
authored
Add commit condition to Python setup in workflow
Added conditional checks for commit in Python setup steps.
1 parent 31a2ee8 commit 3ed5748

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,14 @@ jobs:
8282
8383
- name: Setup Python
8484
#if: ${{ matrix.userName == 'q215613905' && env.commit }}
85+
if: ${{ env.commit }}
8586
uses: actions/setup-python@v6
8687
with:
8788
python-version: '3.8'
8889

8990
- name: Install Python dependencies
9091
#if: ${{ matrix.userName == 'q215613905' && env.commit }}
92+
if: ${{ env.commit }}
9193
run: |
9294
python -m pip install --upgrade pip
9395
pip install lxml ujson pyquery requests jsonpath cachetools pycryptodome beautifulsoup4
@@ -102,6 +104,7 @@ jobs:
102104
103105
- name: Setup Python local.properties
104106
#if: ${{ matrix.userName == 'q215613905' && env.commit }}
107+
if: ${{ env.commit }}
105108
working-directory: TVBoxOSC
106109
run: echo "" > local.properties
107110

0 commit comments

Comments
 (0)