mirror of https://github.com/FabricMC/yarn.git
Update github actions, add auto PR labeling action. (#3401)
This commit is contained in:
parent
e107424eba
commit
d66a79f45c
|
@ -10,12 +10,12 @@ jobs:
|
||||||
image: openjdk:${{ matrix.java }}
|
image: openjdk:${{ matrix.java }}
|
||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: ./gradlew build javadocJar checkMappings --stacktrace --warning-mode fail
|
- run: ./gradlew build javadocJar checkMappings --stacktrace --warning-mode fail
|
||||||
- name: Build artifacts
|
- name: Build artifacts
|
||||||
if: ${{ matrix.java == '18-jdk' }}
|
if: ${{ matrix.java == '18-jdk' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Artifacts
|
||||||
path: build/libs/
|
path: build/libs/
|
||||||
|
@ -26,6 +26,6 @@ jobs:
|
||||||
image: openjdk:18-jdk
|
image: openjdk:18-jdk
|
||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: gradle/wrapper-validation-action@v1
|
- uses: gradle/wrapper-validation-action@v1
|
||||||
- run: ./gradlew :filament:build
|
- run: ./gradlew :filament:build
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
image: openjdk:18-jdk
|
image: openjdk:18-jdk
|
||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
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.
|
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default.
|
||||||
- name: Generate build number
|
- name: Generate build number
|
||||||
id: buildnumber
|
id: buildnumber
|
||||||
|
|
|
@ -7,7 +7,7 @@ jobs:
|
||||||
image: openjdk:18-jdk
|
image: openjdk:18-jdk
|
||||||
options: --user root
|
options: --user root
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- run: ./gradlew :filament:build :filament:publish --stacktrace
|
- run: ./gradlew :filament:build :filament:publish --stacktrace
|
||||||
env:
|
env:
|
||||||
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
MAVEN_URL: ${{ secrets.MAVEN_URL }}
|
||||||
|
|
|
@ -9,6 +9,6 @@ jobs:
|
||||||
if: ${{ github.event.label.name == 'update-base' }}
|
if: ${{ github.event.label.name == 'update-base' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: FabricMC/fabric-action-scripts@v1
|
- uses: FabricMC/fabric-action-scripts@v2
|
||||||
with:
|
with:
|
||||||
context: yarn-update-base
|
context: yarn-update-base
|
|
@ -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
|
Loading…
Reference in New Issue