diff --git a/.github/workflows/auto_snapshot_update.yml b/.github/workflows/auto_snapshot_update.yml index d547ba9..e376122 100644 --- a/.github/workflows/auto_snapshot_update.yml +++ b/.github/workflows/auto_snapshot_update.yml @@ -16,6 +16,9 @@ on: fapi_version: description: "Fabric API version" required: true + cf_game_version: + description: "CurseForge GameVersion" + required: true permissions: contents: write @@ -81,7 +84,7 @@ jobs: - name: Update version constants run: | - python scripts/update_version_constants.py "${{ github.event.inputs.mc_version }}" "${{ github.event.inputs.yarn_mappings }}" "${{ github.event.inputs.fabric_loader }}" "${{ github.event.inputs.fapi_version }}" + python scripts/update_version_constants.py "${{ github.event.inputs.mc_version }}" "${{ github.event.inputs.yarn_mappings }}" "${{ github.event.inputs.fabric_loader }}" "${{ github.event.inputs.fapi_version }}" "${{ github.event.inputs.cf_game_version }}" shell: bash # To fix any style issues that the migration scripts might cause diff --git a/scripts/update_version_constants.py b/scripts/update_version_constants.py index 1bd7594..1a36c3a 100644 --- a/scripts/update_version_constants.py +++ b/scripts/update_version_constants.py @@ -6,6 +6,7 @@ parser.add_argument("yarn_mappings", help="Yarn mappings version") parser.add_argument("fabric_loader", help="Fabric Loader version") parser.add_argument("fapi_version", help="Fabric API version") + parser.add_argument("cf_game_version", help="CurseForge GameVersion") args = parser.parse_args() # Read gradle.properties @@ -20,6 +21,7 @@ "loader_version": lambda v: args.fabric_loader, "fabric_version": lambda v: args.fapi_version, "mod_version": lambda v: v[: v.index("MC") + 2] + args.mc_version, + "cf_game_version": lambda v: args.cf_game_version, } # Update lines