From ff49411bc10224a33ad6544839d06c51acc9faf6 Mon Sep 17 00:00:00 2001 From: Pavel Penev Date: Tue, 21 Nov 2023 10:23:46 +0200 Subject: [PATCH] Updated wiki job to use prepare job output --- .github/workflows/documentation.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index f7e8ada7b6..7ffb4fabc0 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -42,13 +42,19 @@ jobs: wiki: name: Update Wiki - if: github.repository == 'openra/openra' + needs: prepare + if: github.repository == 'openra/openra' && needs.prepare.outputs.version_type != 'bleed' runs-on: ubuntu-22.04 steps: + - name: Debug output + run: | + echo ${{ needs.prepare.outputs.git_tag }} + echo ${{ needs.prepare.outputs.version_type }} + - name: Clone Repository uses: actions/checkout@v3 with: - ref: ${{ github.event.inputs.tag }} + ref: ${{ needs.prepare.outputs.git_tag }} - name: Install .NET 6 uses: actions/setup-dotnet@v3 @@ -67,28 +73,22 @@ jobs: path: wiki - name: Update Wiki (Playtest) - if: startsWith(github.event.inputs.tag, 'playtest-') - env: - GIT_TAG: ${{ github.event.inputs.tag }} + if: startsWith(needs.prepare.outputs.git_tag, 'playtest-') run: | - ./utility.sh all --settings-docs "${GIT_TAG}" > "wiki/Settings (playtest).md" + ./utility.sh all --settings-docs "${{ needs.prepare.outputs.git_tag }}" > "wiki/Settings (playtest).md" - name: Update Wiki (Release) - if: startsWith(github.event.inputs.tag, 'release-') - env: - GIT_TAG: ${{ github.event.inputs.tag }} + if: startsWith(needs.prepare.outputs.git_tag, 'release-') run: | - ./utility.sh all --settings-docs "${GIT_TAG}" > "wiki/Settings.md" + ./utility.sh all --settings-docs "${{ needs.prepare.outputs.git_tag }}" > "wiki/Settings.md" - name: Push Wiki - env: - GIT_TAG: ${{ github.event.inputs.tag }} run: | cd wiki git config --local user.email "actions@github.com" git config --local user.name "GitHub Actions" git add --all - git commit -m "Update auto-generated documentation for ${GIT_TAG}" + git commit -m "Update auto-generated documentation for ${{ needs.prepare.outputs.git_tag }}" git push origin master docs: