the set-safe-drectory should maybe #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
jobs: | |
nikola_build: | |
runs-on: ubuntu-latest | |
name: 'Deploy Nikola to GitHub Pages' | |
steps: | |
- name: Check out | |
uses: actions/checkout@v2 | |
with: | |
set-safe-directory: '/home/runner/work/hnm-nikola/hnm-nikola' | |
- name: look around | |
run: | | |
set -x +e | |
pwd | |
ls -la | |
echo $HOME | |
cat ~/.gitconfig | |
cat .gitconfig | |
mkdir -p /home/runner/work/_temp/_github_home | |
du -a /home/runner/work/_temp/_github_home | |
# seems the set-safe-directory above just does nothing in that temp home home.... try manually... | |
env HOME=/home/runner/work/_temp/_github_home git config --global --add safe.directory /github/workspace | |
env HOME=/home/runner/work/_temp/_github_home git config --global --add safe.directory /home/runner/work/hnm-nikola/hnm-nikola | |
echo ... | |
cat /home/runner/work/_temp/_github_home/.gitconfig | |
echo ... | |
cat .gitconfig | |
- name: Build and Deploy Nikola | |
uses: getnikola/nikola-action@v3 | |
with: | |
dry_run: false | |