1616 environment : release
1717 steps :
1818 - name : " Security Check"
19- uses : Pycord-Development/execute-whitelist-action@v2.1.1
19+ uses : Pycord-Development/execute-whitelist-action@fa88a821c35ea6ca88ee255ded586af6c9cfe1c6 # v2.1.1
2020 with :
2121 whitelisted-github-ids : ${{ vars.ALLOWED_USER_IDS }}
2222 token : ${{ secrets.GITHUB_TOKEN }}
3232 runs-on : ubuntu-latest
3333 steps :
3434 - name : " Checkout Repository"
35- uses : actions/checkout@v6
35+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3636 with :
3737 fetch-depth : 0
3838 fetch-tags : true
@@ -115,7 +115,7 @@ jobs:
115115 GITHUB_TOKEN : ${{ secrets.ADMIN_GITHUB_TOKEN }}
116116 steps :
117117 - name : " Checkout Repository"
118- uses : actions/checkout@v6
118+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
119119 with :
120120 fetch-depth : 0
121121 fetch-tags : true
@@ -129,12 +129,12 @@ jobs:
129129 git fetch origin
130130 if ! git show-ref --verify --quiet refs/heads/$VERSION_BRANCH; then
131131 git checkout -b $VERSION_BRANCH
132- git push origin $VERSION_BRANCH
132+ git push origin $VERSION_BRANCH -f
133133 fi
134134 git checkout $VERSION_BRANCH
135135 - name : " Setup Python"
136136 id : python-setup
137- uses : actions/setup-python@v6
137+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
138138 with :
139139 python-version : " 3.14"
140140 cache : " pip"
@@ -251,7 +251,7 @@ jobs:
251251 environment : release
252252 steps :
253253 - name : " Checkout repository"
254- uses : actions/checkout@v6
254+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
255255 with :
256256 fetch-depth : 0
257257 fetch-tags : true
@@ -307,31 +307,31 @@ jobs:
307307 echo "old_milestone_version=$OLD_MILESTONE_VERSION" >> $GITHUB_OUTPUT
308308 echo "new_milestone_version=$NEW_MILESTONE_VERSION" >> $GITHUB_OUTPUT
309309
310- close_milestone :
311- runs-on : ubuntu-latest
312- needs : [determine_milestone_id, pre_config]
313- if : ${{ !contains(needs.pre_config.outputs.version, 'rc') &&
314- endsWith(needs.pre_config.outputs.version, '.0') && false }}
315- environment : release
316- env :
317- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
318- steps :
319- - name : " Checkout Repository"
320- uses : actions/checkout@v6
321- with :
322- fetch-depth : 0
323- fetch-tags : true
324-
325- - name : " Close Milestone"
326- run : |
327- gh extension install valeriobelli/gh-milestone
328- OLD_MILESTONE_ID=$(gh milestone list --query "${{ needs.determine_milestone_id.outputs.old_milestone_version }}" | grep "#" | cut -d' ' -f2 | cut -d '#' -f2)
329- gh milestone edit $OLD_MILESTONE_ID --state closed
330-
331- - name : " Create New Milestone"
332- run : |
333- gh extension install valeriobelli/gh-milestone
334- gh milestone create -t "${{ needs.determine_milestone_id.outputs.new_milestone_version }}"
310+ # close_milestone:
311+ # runs-on: ubuntu-latest
312+ # needs: [determine_milestone_id, pre_config]
313+ # if: ${{ !contains(needs.pre_config.outputs.version, 'rc') &&
314+ # endsWith(needs.pre_config.outputs.version, '.0') && false }}
315+ # environment: release
316+ # env:
317+ # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
318+ # steps:
319+ # - name: "Checkout Repository"
320+ # uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
321+ # with:
322+ # fetch-depth: 0
323+ # fetch-tags: true
324+ #
325+ # - name: "Close Milestone"
326+ # run: |
327+ # gh extension install valeriobelli/gh-milestone
328+ # OLD_MILESTONE_ID=$(gh milestone list --query "${{ needs.determine_milestone_id.outputs.old_milestone_version }}" | grep "#" | cut -d' ' -f2 | cut -d '#' -f2)
329+ # gh milestone edit $OLD_MILESTONE_ID --state closed
330+ #
331+ # - name: "Create New Milestone"
332+ # run: |
333+ # gh extension install valeriobelli/gh-milestone
334+ # gh milestone create -t "${{ needs.determine_milestone_id.outputs.new_milestone_version }}"
335335
336336# branch_protection_restore:
337337# runs-on: ubuntu-latest
0 commit comments