Skip to content

Commit

Permalink
Add merge conflict labeler and gradle update and validate tasks (#309)
Browse files Browse the repository at this point in the history
* Add gradle validate and gradle update tasks

* Add merge conflict labeler task

* Use ubuntu-latest image and change some naming
  • Loading branch information
nielsvanvelzen authored Feb 24, 2021
1 parent fcb6073 commit 4ee5048
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/gradlew-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Gradle update

on:
schedule:
- cron: '0 4 * * *'

jobs:
update:
runs-on: ubuntu-latest
if: github.repository == 'jellyfin/jellyfin-android'
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
18 changes: 18 additions & 0 deletions .github/workflows/gradlew-validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Gradle validate

on:
push:
branches:
- master
pull_request:
paths:
- '**/gradlе-wrapper.jar'

jobs:
validate:
runs-on: ubuntu-ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
16 changes: 16 additions & 0 deletions .github/workflows/merge-conflict-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Merge conflict label

on:
schedule:
- cron: '0 4 * * *'
push:

jobs:
triage:
runs-on: ubuntu-ubuntu
if: github.repository == 'jellyfin/jellyfin-android'
steps:
- uses: mschilde/auto-label-merge-conflicts@v2.0
with:
CONFLICT_LABEL_NAME: merge conflict
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4ee5048

Please sign in to comment.