Update github actions, add auto PR labeling action. (#3401)

This commit is contained in:
modmuss50 2022-11-15 17:07:13 +00:00 committed by GitHub
parent e107424eba
commit d66a79f45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 6 deletions

View File

@ -10,12 +10,12 @@ jobs:
image: openjdk:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: ./gradlew build javadocJar checkMappings --stacktrace --warning-mode fail
- name: Build artifacts
if: ${{ matrix.java == '18-jdk' }}
continue-on-error: true
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: Artifacts
path: build/libs/
@ -26,6 +26,6 @@ jobs:
image: openjdk:18-jdk
options: --user root
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew :filament:build

View File

@ -9,7 +9,7 @@ jobs:
image: openjdk:18-jdk
options: --user root
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default.
- name: Generate build number
id: buildnumber

View File

@ -7,7 +7,7 @@ jobs:
image: openjdk:18-jdk
options: --user root
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: ./gradlew :filament:build :filament:publish --stacktrace
env:
MAVEN_URL: ${{ secrets.MAVEN_URL }}

View File

@ -9,6 +9,6 @@ jobs:
if: ${{ github.event.label.name == 'update-base' }}
runs-on: ubuntu-22.04
steps:
- uses: FabricMC/fabric-action-scripts@v1
- uses: FabricMC/fabric-action-scripts@v2
with:
context: yarn-update-base

14
.github/workflows/version-label.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: Update Base Branch
on:
pull_request:
types: [ opened ]
jobs:
update:
if: ${{ github.event.label.name == 'update-base' }}
runs-on: ubuntu-22.04
steps:
- uses: FabricMC/fabric-action-scripts@v2
with:
context: yarn-version-label