File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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' }}
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments