Skip to content

Commit

Permalink
Fix website update step
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 9, 2024
2 parents 20e24cc + dfad06a commit 7da86d3
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ on:
required: true
type: boolean
default: true
# update_website:
# description: "Update wimods.net post (only works if there already is one and publish_curseforge is true)"
# required: false
# type: boolean
# default: false
update_website:
description: "Update wimods.net post (only works if there already is one and publish_curseforge is true)"
required: false
type: boolean
default: false

jobs:
publish:
Expand Down Expand Up @@ -98,19 +98,17 @@ jobs:
echo "file_id=$file_id" >> "$GITHUB_OUTPUT"
echo "CurseForge file ID: `$file_id`" >> $GITHUB_STEP_SUMMARY
# TODO: The add_mod_port workflow currently only works for Fabric versions.
# - name: Trigger website update
# if: ${{ inputs.update_website && inputs.publish_curseforge }}
# env:
# GH_TOKEN: ${{ secrets.WIMODS_NET_PUBLISH_TOKEN }}
# run: |
# MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/-MC.*$//')
# MC_VERSION=$(grep "minecraft_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
# FAPI_VERSION=$(grep "fabric_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
# gh workflow run add_mod_port.yml \
# -R Wurst-Imperium/wimods.net \
# -f mod="chestesp" \
# -f mod_version="$MOD_VERSION" \
# -f mc_version="$MC_VERSION" \
# -f fapi_version="$FAPI_VERSION" \
# -f file_id="${{ steps.cf_file_id.outputs.file_id }}"
- name: Trigger website update
if: ${{ inputs.update_website && inputs.publish_curseforge }}
env:
GH_TOKEN: ${{ secrets.WIMODS_NET_PUBLISH_TOKEN }}
run: |
MOD_VERSION=$(grep "mod_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r' | sed 's/-MC.*$//')
MC_VERSION=$(grep "minecraft_version" gradle.properties | cut -d'=' -f2 | tr -d ' \r')
gh workflow run add_mod_port.yml \
-R Wurst-Imperium/wimods.net \
-f mod="chestesp" \
-f modloader="neoforge" \
-f mod_version="$MOD_VERSION" \
-f mc_version="$MC_VERSION" \
-f file_id="${{ steps.cf_file_id.outputs.file_id }}"

0 comments on commit 7da86d3

Please sign in to comment.