Skip to content

Commit 375ca6b

Browse files
committed
ci(docs): Only print python versions when running
1 parent f8278ec commit 375ca6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
3636

3737
- name: Install poetry
38+
if: env.PUBLISH == 'true'
3839
run: pipx install "poetry==1.1.14"
3940

4041
- name: Set up Python ${{ matrix.python-version }}
42+
if: env.PUBLISH == 'true'
4143
uses: actions/setup-python@v4
4244
with:
4345
python-version: ${{ matrix.python-version }}
@@ -48,6 +50,7 @@ jobs:
4850
run: poetry install --extras "docs lint"
4951

5052
- name: Print python versions
53+
if: env.PUBLISH == 'true'
5154
run: |
5255
python -V
5356
poetry run python -V
@@ -70,6 +73,7 @@ jobs:
7073
SOURCE_DIR: "docs/_build/html" # optional: defaults to entire repository
7174

7275
- name: Purge cache on Cloudflare
76+
if: env.PUBLISH == 'true'
7377
uses: jakejarvis/cloudflare-purge-action@v0.3.0
7478
env:
7579
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}

0 commit comments

Comments
 (0)