Adapt workflows for running from this repo

This commit is contained in:
Raven Szewczyk 2022-07-07 17:28:34 +01:00
parent 95fb3b5e5c
commit 416d9dd1d5
4 changed files with 19 additions and 5 deletions

View File

@ -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

View File

@ -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 != '' }}