Skip to content

Commit 6281a79

Browse files
committed
fix last lint
1 parent 4713f4c commit 6281a79

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
defaults:
2323
run:
2424
shell: bash -l {0}
25+
env:
26+
REF_NAME: ${{ github.ref_name }}
2527

2628
steps:
2729
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -53,16 +55,16 @@ jobs:
5355
- name: Update switcher and latest version
5456
if: ${{ github.event_name == 'release' }}
5557
run: |
56-
python docs/update_switcher.py --version ${{ github.ref_name }}
58+
python docs/update_switcher.py --version $REF_NAME
5759
5860
- name: Create PR
5961
if: ${{ github.event_name == 'release' }}
6062
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
6163
with:
62-
commit-message: "docs: Update switcher.json for ${{ github.ref_name }}"
63-
title: "docs: Update switcher.json for ${{ github.ref_name }}"
64+
commit-message: "docs: Update switcher.json for $REF_NAME"
65+
title: "docs: Update switcher.json for $REF_NAME"
6466
body: "This PR updates the switcher.json file."
65-
branch: "docs/update-switcher-${{ github.ref_name }}"
67+
branch: "docs/update-switcher-$REF_NAME"
6668
base: "main"
6769
labels: "documentation"
6870

@@ -81,7 +83,7 @@ jobs:
8183
with:
8284
github_token: ${{ secrets.GITHUB_TOKEN }}
8385
publish_dir: docs/_build/html/
84-
destination_dir: ${{ github.ref_name }}
86+
destination_dir: $REF_NAME
8587

8688
- name: Publish to Github Pages on release (latest)
8789
if: ${{ github.event_name == 'release' }}

zizmor.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)