Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some actions that'll come in handy later #2034

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Clean Gradle

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup Build
uses: ./.github/actions/build_setup
with:
update-cache: true

- name: Clean
run: ./gradlew clean --build-cache
39 changes: 39 additions & 0 deletions .github/workflows/manage-pr-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Manages labels on PRs before allowing merging
name: Pull Request Labels

on:
pull_request:
types:
- opened
- labeled
- unlabeled
- synchronize

# if a second commit is pushed quickly after the first, cancel the first one's build
concurrency:
group: pr-labels-${{ github.head_ref }}
cancel-in-progress: true

jobs:
Labels:
runs-on: ubuntu-latest

permissions:
pull-requests: read # needed to utilize required-labels

steps:
- name: Check for Merge-Blocking Labels # blocks merge if present
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 0
labels: 'status: do not merge'
exit_type: failure

- name: Check for Required Labels # require at least one of these labels
uses: mheap/github-action-required-labels@v5
with:
mode: minimum
count: 1
labels: 'type: feature, type: bug, type: refactor, type: translation, ignore changelog'
exit_type: failure
Loading