diff --git a/.github/workflows/wiki.yml b/.github/workflows/wiki.yml index 4b834f240..b3cadaeaa 100644 --- a/.github/workflows/wiki.yml +++ b/.github/workflows/wiki.yml @@ -37,7 +37,7 @@ jobs: cd $GITHUB_WORKSPACE/${{github.repository}}.wiki cp -r $GITHUB_WORKSPACE/${{github.repository}}/docs/* . - stable="$(git describe --abbrev=0 --tags)" + stable="$(git -C $GITHUB_WORKSPACE/${{github.repository}} describe --abbrev=0 --tags)" if ! git -C $GITHUB_WORKSPACE/${{github.repository}} log --exit-code --pretty= "$stable.." -- docs/Configuring-Suwayomi‐Server.md; then echo "Changes to config detected, embedding link to stable" sed -i '1s/^/> [!WARNING]\n> This document describes the settings available in the preview version. Please head to ['$stable'](https:\/\/github.com\/Suwayomi\/Suwayomi-Server\/blob\/'$stable'\/docs\/Configuring-Suwayomi%E2%80%90Server.md) for the current stable version\n\n/' Configuring-Suwayomi‐Server.md