Skip to content

Commit a4f4fb6

Browse files
committed
DX: import lock and clean-caches workflows
1 parent e36ba77 commit a4f4fb6

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/clean-caches.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Clean caches
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
workflow_dispatch:
8+
inputs:
9+
ref:
10+
description: Clean caches for this branch name or ref
11+
required: false
12+
type: string
13+
14+
jobs:
15+
cleanup:
16+
name: Remove caches
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- uses: ComPWA/actions/clean-caches@v3
20+
with:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
ref: ${{ inputs.ref }}

.github/workflows/lock.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: |-
6+
${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }}
7+
8+
on:
9+
pull_request:
10+
branches:
11+
- main
12+
- epic/*
13+
paths:
14+
- .pre-commit-config.yaml
15+
- uv.lock
16+
workflow_dispatch:
17+
18+
jobs:
19+
lock:
20+
uses: ComPWA/actions/.github/workflows/lock.yml@v3
21+
secrets:
22+
token: ${{ secrets.PAT }}

0 commit comments

Comments
 (0)