Updated wiki job to use prepare job output
This commit is contained in:
26
.github/workflows/documentation.yml
vendored
26
.github/workflows/documentation.yml
vendored
@@ -42,13 +42,19 @@ jobs:
|
|||||||
|
|
||||||
wiki:
|
wiki:
|
||||||
name: Update 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
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Debug output
|
||||||
|
run: |
|
||||||
|
echo ${{ needs.prepare.outputs.git_tag }}
|
||||||
|
echo ${{ needs.prepare.outputs.version_type }}
|
||||||
|
|
||||||
- name: Clone Repository
|
- name: Clone Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.tag }}
|
ref: ${{ needs.prepare.outputs.git_tag }}
|
||||||
|
|
||||||
- name: Install .NET 6
|
- name: Install .NET 6
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
@@ -67,28 +73,22 @@ jobs:
|
|||||||
path: wiki
|
path: wiki
|
||||||
|
|
||||||
- name: Update Wiki (Playtest)
|
- name: Update Wiki (Playtest)
|
||||||
if: startsWith(github.event.inputs.tag, 'playtest-')
|
if: startsWith(needs.prepare.outputs.git_tag, 'playtest-')
|
||||||
env:
|
|
||||||
GIT_TAG: ${{ github.event.inputs.tag }}
|
|
||||||
run: |
|
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)
|
- name: Update Wiki (Release)
|
||||||
if: startsWith(github.event.inputs.tag, 'release-')
|
if: startsWith(needs.prepare.outputs.git_tag, 'release-')
|
||||||
env:
|
|
||||||
GIT_TAG: ${{ github.event.inputs.tag }}
|
|
||||||
run: |
|
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
|
- name: Push Wiki
|
||||||
env:
|
|
||||||
GIT_TAG: ${{ github.event.inputs.tag }}
|
|
||||||
run: |
|
run: |
|
||||||
cd wiki
|
cd wiki
|
||||||
git config --local user.email "actions@github.com"
|
git config --local user.email "actions@github.com"
|
||||||
git config --local user.name "GitHub Actions"
|
git config --local user.name "GitHub Actions"
|
||||||
git add --all
|
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
|
git push origin master
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
|
|||||||
Reference in New Issue
Block a user