diff --git a/README.md b/README.md index 8c60029896e1559..e13f4e8c26ee9a8 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ jobs: name: A job to publish zulip-archive in GitHub pages steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Run archive id: archive uses: zulip/zulip-archive@master diff --git a/entrypoint.sh b/entrypoint.sh index 61901aec4a176b1..dd3a264c0c86aba 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,9 @@ github_personal_access_token=$4 delete_history=$5 archive_branch=$6 +# See https://github.com/actions/checkout/issues/766 +git config --global --add safe.directory "$GITHUB_WORKSPACE" + checked_out_repo_path="$(pwd)" html_dir_path=$checked_out_repo_path json_dir_path="${checked_out_repo_path}/zulip_json"