Skip to content

Commit ce41df1

Browse files
authored
add some actions that'll come in handy later (#2034)
1 parent 5e2f192 commit ce41df1

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/clean.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Clean Gradle
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: true
15+
16+
- name: Setup Build
17+
uses: ./.github/actions/build_setup
18+
with:
19+
update-cache: true
20+
21+
- name: Clean
22+
run: ./gradlew clean --build-cache
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Manages labels on PRs before allowing merging
2+
name: Pull Request Labels
3+
4+
on:
5+
pull_request:
6+
types:
7+
- opened
8+
- labeled
9+
- unlabeled
10+
- synchronize
11+
12+
# if a second commit is pushed quickly after the first, cancel the first one's build
13+
concurrency:
14+
group: pr-labels-${{ github.head_ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
Labels:
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
pull-requests: read # needed to utilize required-labels
23+
24+
steps:
25+
- name: Check for Merge-Blocking Labels # blocks merge if present
26+
uses: mheap/github-action-required-labels@v5
27+
with:
28+
mode: exactly
29+
count: 0
30+
labels: 'status: do not merge'
31+
exit_type: failure
32+
33+
- name: Check for Required Labels # require at least one of these labels
34+
uses: mheap/github-action-required-labels@v5
35+
with:
36+
mode: minimum
37+
count: 1
38+
labels: 'type: feature, type: bug, type: refactor, type: translation, ignore changelog'
39+
exit_type: failure

0 commit comments

Comments
 (0)