File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 53
53
id : config
54
54
run : |
55
55
if [[ "${{ github.ref_name }}" == "main" ]]; then
56
- echo "target_repo =${{ github.repository }}" >> "$GITHUB_OUTPUT"
56
+ echo "repo =${{ github.repository }}" >> "$GITHUB_OUTPUT"
57
57
else
58
- echo "target_repo =${{ github.repository }}-devel" >> "$GITHUB_OUTPUT"
58
+ echo "repo =${{ github.repository }}-devel" >> "$GITHUB_OUTPUT"
59
59
fi
60
60
61
61
- name : Modify site_url for development documentation
@@ -73,12 +73,12 @@ jobs:
73
73
run : |
74
74
echo "Deploying from branch: ${{ github.ref_name }}"
75
75
echo "Commit: ${{ github.sha }}"
76
- echo "Deploying to: ${{ steps.config.outputs.target_repo }}"
76
+ echo "Deploying to: ${{ steps.config.outputs.repo }}"
77
77
78
78
git config --global user.email "[email protected] "
79
79
git config --global user.name "github-actions"
80
80
81
81
git remote set-url origin \
82
- https://github.com/${{ steps.config.outputs.target_repo }}
82
+ https://github.com/${{ steps.config.outputs.repo }}
83
83
mkdocs gh-deploy --config-file mkdocs.yml \
84
84
--remote-branch gh-pages --force
You can’t perform that action at this time.
0 commit comments