Skip to content

Commit

Permalink
ci: create cleanup.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff committed Feb 10, 2025
1 parent 5806217 commit 2976b64
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Cleanup"

on:
pull_request:
types: [closed]

jobs:
clean-cache:
name: "Cleanup Cache"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.2.2
- name: "Run gh-cleanup-cache.ps1"
run: |
./scripts/gh-cleanup-cache.ps1 `
-Branch ${{ github.event.pull_request.head.ref }}
shell: pwsh

clean-runs:
name: "Cleanup Workflow Runs"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.2.2
- name: "Run gh-cleanup-runs.ps1"
run: |
./scripts/gh-cleanup-runs.ps1 `
-Workflow "build.yml" `
-Branch ${{ github.event.pull_request.head.ref }}
shell: pwsh
- name: "Run gh-cleanup-runs.ps1"
run: |
./scripts/gh-cleanup-runs.ps1 `
-Workflow "build-windows-hosted.yml" `
-Branch ${{ github.event.pull_request.head.ref }}
shell: pwsh

0 comments on commit 2976b64

Please sign in to comment.