File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ jobs:
2121 pr_ids=$(gh api --header 'Accept: application/vnd.github+json' --method GET /repos/${{ github.repository }}/pulls | jq -r '. | map(.number) | join("\\|")')
2222 find pr -type d -mindepth 1 -maxdepth 1 -not -regex "^pr\/\(${pr_ids}\)" -exec rm -rf {} + || true
2323 env :
24- GH_TOKEN : ${{ github.token }}
24+ GITHUB_TOKEN : ${{ github.token }}
2525 - name : Remove releases
2626 run : |
2727 released_versions=$(gh api --header 'Accept: application/vnd.github+json' --method GET /repos/${{ github.repository }}/releases | jq -r '. + [{"tag_name": "latest"}, {"tag_name": "pr"}] | map(.tag_name | sub("\\.";"\\.";"g")) | join("\\|")')
2828 find . -not -path '*/.*' -type d -mindepth 1 -maxdepth 1 -not -regex "^\.\/\(${released_versions}\)" -exec rm -rf {} + || true
2929 env :
30- GH_TOKEN : ${{ github.token }}
30+ GITHUB_TOKEN : ${{ github.token }}
3131 - id : status
3232 run : |
3333 if [ -z "$(git status --porcelain)" ]; then
4646 git commit -m "chore: cleaned up orphaned deployments"
4747 git push origin
4848 env :
49- GH_TOKEN : ${{ github.token }}
49+ GITHUB_TOKEN : ${{ github.token }}
5050
5151 deploy :
5252 name : Deploy
@@ -61,11 +61,11 @@ jobs:
6161 id-token : write
6262 steps :
6363 - uses : actions/checkout@v4
64- - uses : actions/configure-pages@v4
64+ - uses : actions/configure-pages@v5
6565 - name : Upload
6666 uses : actions/upload-pages-artifact@v3
6767 with :
6868 path : " ."
6969 - name : Deploy to GitHub Pages
7070 id : deployment
71- uses : actions/deploy-pages@v1
71+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments