From f7c16122d9b422006a858e2bebf6dbd414f74500 Mon Sep 17 00:00:00 2001 From: Raven Szewczyk Date: Wed, 7 Feb 2024 21:47:42 +0000 Subject: [PATCH] Update GTNHGradle, remove the version comment updating workflow --- .github/workflows/buildscript-maintenance.yml | 39 ------------------- .github/workflows/release-packages.yml | 2 +- gradle.properties | 4 +- settings.gradle | 2 +- 4 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/buildscript-maintenance.yml diff --git a/.github/workflows/buildscript-maintenance.yml b/.github/workflows/buildscript-maintenance.yml deleted file mode 100644 index a9d54861..00000000 --- a/.github/workflows/buildscript-maintenance.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This workflow only meant for the source mod you shouldn't bring it into your own project - -name: Buildscript maintenance - -on: - push: - branches: [ master, main ] - paths: - - build.gradle - workflow_dispatch: { } - -jobs: - buildscript-maintenance: - runs-on: ubuntu-latest - # Avoid running this workflow on forks - if: github.repository == 'GTNewHorizons/ExampleMod1.7.10' - permissions: - contents: write - pull-requests: write - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Ensure build script version is up to date - id: update-buildscript - run: | - new_version="$(date +%s)" - sed --in-place "1s!^//version:.*!//version: $new_version!g" build.gradle - echo "::set-output name=new_version::$new_version" - - - name: Create Pull Request - id: create-pull-request - uses: peter-evans/create-pull-request@v4 - with: - add-paths: build.gradle - commit-message: '[ci skip] update build script version to ${{ steps.update-buildscript.outputs.new_version }}' - branch: buildscript-maintenance - title: Update build script version to ${{ steps.update-buildscript.outputs.new_version }} - body: This pull request is created by the buildscript-maintenance workflow diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 9a1f6bc9..0bdfbfbf 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set release version run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV diff --git a/gradle.properties b/gradle.properties index cee73473..1b0133e5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -33,7 +33,7 @@ channel = stable mappingsVersion = 12 # Defines other MCP mappings for dependency deobfuscation. -remoteMappings = https://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/ +remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/conf/ # Select a default username for testing your mod. You can always override this per-run by running # `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE. @@ -117,7 +117,7 @@ includeWellKnownRepositories = true usesMavenPublishing = true # Maven repository to publish the mod to. -# mavenPublishUrl = https://nexus.gtnewhorizons.com/repository/releases/ +# mavenPublishUrl = https\://nexus.gtnewhorizons.com/repository/releases/ # Publishing to Modrinth requires you to set the MODRINTH_TOKEN environment variable to your current Modrinth API token. # diff --git a/settings.gradle b/settings.gradle index ac267e28..42bb0ba3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,5 +17,5 @@ pluginManagement { } plugins { - id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.8' + id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.12' }