Pass GH_TOKEN to the changelog generation step (#15)

* Pass GH_TOKEN to the changelog generation step

* Update checkout and setup-java to node16 versions (v2 is deprecated)
This commit is contained in:
Raven Szewczyk 2022-10-11 20:53:41 +01:00 committed by GitHub
parent b4c979f5ca
commit 5bc2d1886e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout mod repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout workflows repo
@ -38,7 +38,7 @@ jobs:
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'

View File

@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout mod repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 32
@ -34,7 +34,7 @@ jobs:
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
@ -71,6 +71,8 @@ jobs:
cat "${CHANGELOG_FILE}"
shell: bash
continue-on-error: true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Maven, Modrinth and CurseForge
run: ./gradlew --info --stacktrace build publish