mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-03 02:41:29 +02:00
Adapt workflows for running from this repo
This commit is contained in:
parent
95fb3b5e5c
commit
416d9dd1d5
13
.github/workflows/build-and-test.yml
vendored
13
.github/workflows/build-and-test.yml
vendored
@ -10,9 +10,16 @@ jobs:
|
|||||||
build-and-test:
|
build-and-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout mod repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Checkout workflows repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: GTNewHorizons/GTNH-Actions-Workflows
|
||||||
|
path: .gtnh-workflows
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
@ -38,5 +45,5 @@ jobs:
|
|||||||
|
|
||||||
- name: Test no errors reported during server run
|
- name: Test no errors reported during server run
|
||||||
run: |
|
run: |
|
||||||
chmod +x .github/scripts/test_no_error_reports
|
chmod +x .gtnh-workflows/scripts/test_no_error_reports
|
||||||
.github/scripts/test_no_error_reports
|
.gtnh-workflows/scripts/test_no_error_reports
|
||||||
|
11
.github/workflows/release-tags.yml
vendored
11
.github/workflows/release-tags.yml
vendored
@ -5,14 +5,20 @@ name: Release tagged build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
MAVEN_USER:
|
||||||
|
required: false
|
||||||
|
MAVEN_PASSWORD:
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout mod repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 32
|
||||||
|
|
||||||
- name: Set release version
|
- name: Set release version
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
@ -47,3 +53,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
MAVEN_USER: ${{ secrets.MAVEN_USER }}
|
||||||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
|
||||||
|
if: ${{ env.MAVEN_USER != '' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user