Skip to content

Commit 40fb7ce

Browse files
committed
add footer for source repo
1 parent 2f69d11 commit 40fb7ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/website.yml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
owner="${{ github.repository_owner }}"
3333
repo="$(awk -F / '{print $2}' <<< "${{ github.repository }}")"
3434
if ! grep -qE '^HUGO_BASEURL=' .env.final; then echo "HUGO_BASEURL=${BASEURL:-https://$owner.github.io/$repo/}" | tee -a .env.final; fi
35+
if ! grep -qE '^HUGO_PARAMS_FOOTER=' .env.final; then echo HUGO_PARAMS_FOOTER=$'\'<a href="${{ github.server_url }}/${{ github.repository }}">source repo</a>\'' | tee -a .env.final; fi
3536
if ! grep -qE '^DOMAIN=' .env.final; then echo "DOMAIN=$(awk -F / '/^HUGO_BASEURL=/ {print $3}' .env.final | tail -n1)" | tee -a .env.final; fi
3637
env:
3738
DOTENV: ${{ secrets.DOTENV }}

0 commit comments

Comments
 (0)