Skip to content

Commit b2a74ce

Browse files
authored
Create cleanup-action.yml
1 parent 720326a commit b2a74ce

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/actions/cleanup-action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cleanup:
2+
name: Limpieza Avanzada de Runners
3+
runs-on: ubuntu-latest
4+
permissions:
5+
actions: write
6+
steps:
7+
- name: Limpiar runners offline
8+
uses: actions/cleanup-action@v4
9+
with:
10+
token: ${{ secrets.RUNNER_CLEANUP_TOKEN }} # Token personalizado
11+
remove-token: ${{ secrets.RUNNER_CLEANUP_TOKEN }} # Token personalizado
12+
exclude-running: true
13+
min-age-days: 1
14+
dry-run: true
15+
16+
- name: Terminar workflows obsoletos
17+
uses: ./.github/actions/cancel-workflows
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
hours: 24 # Cancela workflows con más de 24 horas

0 commit comments

Comments
 (0)