Update GitHub workflows to support [ci skip] tag

(It also now only respects "relevant" files like gradle configs and source files by default)
This commit is contained in:
Max
2021-01-25 18:08:57 +01:00
parent d6c2772d8e
commit a3e8bbd8f4
2 changed files with 14 additions and 1 deletions

View File

@@ -2,6 +2,10 @@ name: Java CI
on:
push:
paths:
- '**.gradle'
- '**.properties'
- '**/src/**'
branches:
- "1.16"
- "1.17"
@@ -17,6 +21,8 @@ jobs:
java-version: 1.8
- name: Upload to Bintray
run: ./gradlew bintrayUpload curseforgePublish --stacktrace
if: |
!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
env:
BINTRAY_USER: shedaniel
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}

View File

@@ -1,7 +1,12 @@
name: Snapshot Compile & Release
on:
[pull_request]
pull_request:
paths:
- '**.gradle'
- '**.properties'
- '**/src/**'
types: [ opened, synchronize, reopened ]
jobs:
build:
@@ -16,6 +21,8 @@ jobs:
java-version: 1.8
- name: Upload to Bintray
run: ./gradlew bintrayUpload --stacktrace
if: |
!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
env:
BINTRAY_USER: shedaniel
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}