Skip to content

Commit 0ecd2e3

Browse files
committed
feat(pylint): dont run on master or dev or tag
1 parent ba4654c commit 0ecd2e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/python.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777

7878
- name: Get all files that have changed
7979
id: changed-files
80-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
80+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' && github.ref_type != 'tag' }}
8181
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
8282
with:
8383
files: |
@@ -112,18 +112,18 @@ jobs:
112112

113113

114114
- uses: actions/checkout@v4
115-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
115+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' && github.ref_type != 'tag' }}
116116

117117

118118
- name: Set up Python ${{ matrix.python-version }}
119-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
119+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' && github.ref_type != 'tag' }}
120120
uses: actions/setup-python@v5
121121
with:
122122
python-version: ${{ matrix.python-version }}
123123

124124

125125
- name: Install Dependencies ${{ matrix.python-version }}
126-
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' }}
126+
if: ${{ github.ref_name != 'master' && github.ref_name != 'development' && github.ref_type != 'tag' }}
127127
run: |
128128
python -m pip install --upgrade pip
129129
pip install -r requirements.txt

0 commit comments

Comments
 (0)