Skip to content

Commit 25580e5

Browse files
committed
Fix build
1 parent 5dd911c commit 25580e5

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/cloudflare-page.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ jobs:
3636
uses: addnab/docker-run-action@v3
3737
with:
3838
image: hugomods/hugo:exts
39-
options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN
39+
options: -v ${{ github.workspace }}:/src -e GITHUB_TOKEN -e NETRC_USERNAME -e NETRC_PASSWORD
4040
run: >-
4141
git config --global --add safe.directory /src &&
42-
printf "machine github.com\nlogin $NETRC_USERNAME\npassword $NETRC_PASSWORD" >> ~/.netrc &&
42+
echo "machine github.com" >> $HOME/.netrc &&
43+
echo "login ${NETRC_USERNAME}" >> $HOME/.netrc &&
44+
echo "password ${NETRC_PASSWORD}" >> $HOME/.netrc &&
45+
cat $HOME/.netrc &&
4346
hugo --minify --gc --enableGitInfo &&
4447
cp public/en/404.html public/404.html
4548
env:

0 commit comments

Comments
 (0)