ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

cleanup clean-pr-env.yml

-51
-51
.github/workflows/clean-pr-env.yml
··· 4 4 types: 5 5 - closed 6 6 jobs: 7 - # comment: 8 - # runs-on: ubuntu-latest 9 - # outputs: 10 - # comment-id: ${{ steps.comment.outputs.comment-id }} 11 - # steps: 12 - # - name: Add comment 13 - # uses: peter-evans/create-or-update-comment@v4 14 - # id: comment 15 - # with: 16 - # issue-number: ${{ github.event.number }} 17 - # body: | 18 - # [Cleaning up gh environments...](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) 19 7 cleanup-gh: 20 8 runs-on: ubuntu-latest 21 9 permissions: write-all ··· 33 21 token: ${{ steps.get-token.outputs.token }} 34 22 environment: pr-${{ github.event.number }} 35 23 ref: ${{ github.ref_name }} 36 - # cleanup-cf: 37 - # runs-on: ubuntu-latest 38 - 39 - # steps: 40 - # - uses: actions/checkout@v4 41 - # - name: find ids 42 - # id: query 43 - # uses: cloudflare/wrangler-action@v3 44 - # with: 45 - # apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 46 - # accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} 47 - # command: pages deployment list --environment "preview" --project-name "wire-docs" 48 - # - name: filter 49 - # env: 50 - # CMD_OUTPUT: ${{ steps.query.outputs.command-output }} 51 - # # filter by pr, awk to find deployment id, force delete deployment. 52 - # run: | 53 - # echo $CMD_OUTPUT | 54 - # grep "pr-${{ github.event.number }} " | 55 - # awk -F '│' '{print $(NF-1)}' | 56 - # awk -F '/' '{print $NF}' | 57 - # tr -d ' ' | 58 - # xargs -I % curl -X DELETE \ 59 - # "https://api.cloudflare.com/client/v4/accounts/${{ secrets.CLOUDFLARE_ACCOUNT_ID }}/pages/projects/wire-docs/deployments/%?force=true" \ 60 - # -H "Content-Type: application/json" \ 61 - # -H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" 62 - # update-comment: 63 - # runs-on: ubuntu-latest 64 - # needs: 65 - # - cleanup-gh 66 - # - comment 67 - # steps: 68 - # - name: update comment 69 - # uses: peter-evans/create-or-update-comment@v4 70 - # with: 71 - # comment-id: ${{ needs.comment.outputs.comment-id }} 72 - # edit-mode: replace 73 - # body: | 74 - # [Github environments clean!](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})