Skip to content

Commit 6a8127e

Browse files
committed
minor tidy up of MkDocs workflow
1 parent 9937e02 commit 6a8127e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-mkdocs-website.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
id: config
5454
run: |
5555
if [[ "${{ github.ref_name }}" == "main" ]]; then
56-
echo "target_repo=${{ github.repository }}" >> "$GITHUB_OUTPUT"
56+
echo "repo=${{ github.repository }}" >> "$GITHUB_OUTPUT"
5757
else
58-
echo "target_repo=${{ github.repository }}-devel" >> "$GITHUB_OUTPUT"
58+
echo "repo=${{ github.repository }}-devel" >> "$GITHUB_OUTPUT"
5959
fi
6060
6161
- name: Modify site_url for development documentation
@@ -73,12 +73,12 @@ jobs:
7373
run: |
7474
echo "Deploying from branch: ${{ github.ref_name }}"
7575
echo "Commit: ${{ github.sha }}"
76-
echo "Deploying to: ${{ steps.config.outputs.target_repo}}"
76+
echo "Deploying to: ${{ steps.config.outputs.repo}}"
7777
7878
git config --global user.email "[email protected]"
7979
git config --global user.name "github-actions"
8080
8181
git remote set-url origin \
82-
https://github.com/${{ steps.config.outputs.target_repo }}
82+
https://github.com/${{ steps.config.outputs.repo }}
8383
mkdocs gh-deploy --config-file mkdocs.yml \
8484
--remote-branch gh-pages --force

0 commit comments

Comments
 (0)