diff --git a/.github/workflows/TestBuild.yaml b/.github/workflows/TestBuild.yaml index 0bc8cf0c0..1f733fe63 100644 --- a/.github/workflows/TestBuild.yaml +++ b/.github/workflows/TestBuild.yaml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.7 # https://github.com/madhead/read-java-properties#error-java_home-is-set-to-an-invalid-directory - name: Gather Gradle properties @@ -38,7 +38,7 @@ jobs: run: sed -i "s/mod_version.*=.*/mod_version = ${{ steps.gradle_properties.outputs.mod_version }}-${{ steps.vars.outputs.SHA_SHORT }}/g" gradle.properties - name: Set up Temurin JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4.2.1 with: distribution: 'temurin' java-version: '8' @@ -48,12 +48,12 @@ jobs: run: chmod +x gradlew - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3.4.2 with: arguments: build - name: Upload Build Artifacts - uses: actions/upload-artifact@v2.2.3 + uses: actions/upload-artifact@v4.3.4 with: - name: GroovyScript-${{ steps.gradle_properties.outputs.mod_version }} + name: GroovyScript-${{ steps.gradle_properties.outputs.modVersion }} path: build/libs diff --git a/.github/workflows/build_and_publish.yaml b/.github/workflows/build_and_publish.yaml index 61618781b..ca57cb8c1 100644 --- a/.github/workflows/build_and_publish.yaml +++ b/.github/workflows/build_and_publish.yaml @@ -49,7 +49,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4.1.7 with: token: ${{ secrets.PAT }} @@ -89,7 +89,7 @@ jobs: - name: Commit and push gradle.properties if: env.UPDATED == 'false' # only push new version if it's not already updated - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5.0.1 with: commit_message: "Bump version to ${{ github.event.inputs.version }}" commit_options: "--no-verify" @@ -104,7 +104,7 @@ jobs: fi - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4.2.1 with: distribution: 'temurin' java-version: '8' @@ -113,13 +113,13 @@ jobs: run: chmod +x gradlew - name: Build jars - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3.4.2 with: arguments: build - name: Publish to GitHub if: env.publish-gh == 'true' - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2.0.6 with: tag_name: "v${{ inputs.version }}" token: ${{ secrets.PAT }} @@ -141,7 +141,7 @@ jobs: - name: Publish to Curseforge if: ${{ inputs.publish-cf }} - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3.4.2 env: CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_TOKEN }} CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }} @@ -152,7 +152,7 @@ jobs: - name: Publish to Modrinth if: ${{ inputs.publish-mr }} - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3.4.2 env: MODRINTH_API_KEY: ${{ secrets.MODRINTH_TOKEN }} CHANGELOG_LOCATION: ${{ env.CHANGELOG_LOCATION }} @@ -163,7 +163,7 @@ jobs: - name: Publish to maven if: ${{ inputs.publish-maven }} - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3.4.2 with: arguments: publish env: