Skip to content

Commit

Permalink
chore(CI): Update CI configs (cryostatio#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg authored Aug 14, 2023
1 parent a7eeaac commit ea85973
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check labels not applied

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

jobs:
check-needs-triage-not-applied:
runs-on: ubuntu-latest
steps:
- name: Fail if needs-triage label applied
if: ${{ contains(github.event.pull_request.labels.*.name, 'needs-triage')}}
run: exit 1
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
JVM_version: ['11', '17']
if: ${{ github.repository_owner == 'cryostatio' }}
steps:
- name: Fail if PR and safe-to-test label NOT applied
Expand All @@ -39,7 +42,7 @@ jobs:
submodules: true
- uses: actions/setup-java@v2
with:
java-version: '11'
java-version: ${{ matrix.JVM_version }}
distribution: 'temurin'
- name: maven-settings
uses: s4u/maven-settings-action@v2
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Label pull request

on:
pull_request_target:
types:
- opened
- reopened

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit ea85973

Please sign in to comment.