diff --git a/.github/workflows/actions_template_sync.yml b/.github/workflows/actions_template_sync.yml index b933a05..b71b5cc 100644 --- a/.github/workflows/actions_template_sync.yml +++ b/.github/workflows/actions_template_sync.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.7.1-draft + uses: AndreasAugustin/actions-template-sync@v0.7.2-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: AndreasAugustin/template diff --git a/README.md b/README.md index ad6c9fa..e90ab1c 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.7.1-draft + uses: AndreasAugustin/actions-template-sync@v0.7.2-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: @@ -94,7 +94,7 @@ jobs: private_key: ${{ secrets.PRIVATE_KEY }} - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.7.1-draft + uses: AndreasAugustin/actions-template-sync@v0.7.2-draft with: github_token: ${{ steps.generate_token.outputs.token }} source_repo_path: @@ -122,7 +122,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: actions-template-sync - uses: AndreasAugustin/actions-template-sync@v0.7.1-draft + uses: AndreasAugustin/actions-template-sync@v0.7.2-draft with: github_token: ${{ secrets.GITHUB_TOKEN }} source_repo_path: ${{ secrets.SOURCE_REPO_PATH }} # , should be within secrets diff --git a/src/entrypoint.sh b/src/entrypoint.sh index cf0781c..897383c 100644 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -58,7 +58,7 @@ function git_init() { git config --global --add safe.directory /github/workspace git lfs install - if [[ -n "${IS_NOT_SOURCE_GITHUB}" ]]; then + if [[ "${IS_NOT_SOURCE_GITHUB}" == 'true' ]]; then info "the source repository is not located within GitHub." ssh-keyscan -t rsa "${SOURCE_REPO_HOSTNAME}" >> /root/.ssh/known_hosts else