diff --git a/action.yml b/action.yml index 5bd71671..30dcdd1f 100644 --- a/action.yml +++ b/action.yml @@ -73,8 +73,8 @@ runs: # image: "src/Dockerfile" steps: - name: github sync - run: ./entrypoint.sh - working-directory: src/ + run: src/entrypoint.sh + # working-directory: src/ shell: bash id: sync env: diff --git a/src/entrypoint.sh b/src/entrypoint.sh index e5063ed0..8b811384 100755 --- a/src/entrypoint.sh +++ b/src/entrypoint.sh @@ -3,8 +3,8 @@ set -e # set -u # set -x -# shellcheck source=src/sync_common.sh -source sync_common.sh +# shellcheck source=./sync_common.sh +source ./sync_common.sh ########################################### # Precheks @@ -111,7 +111,7 @@ function gpg_setup() { KEY_ID="$(gpg --list-secret-key --with-colons "${git_user_email}" | awk -F: '/sec:/ {print $5}')" git config user.signingkey "${KEY_ID}" git config commit.gpgsign true - git config gpg.program gpg_no_tty.sh + git config gpg.program "$(pwd)/gpg_no_tty.sh" info "done prepare gpg" echo "::endgroup::" diff --git a/src/sync_template.sh b/src/sync_template.sh index e09309d4..1ddabfcd 100755 --- a/src/sync_template.sh +++ b/src/sync_template.sh @@ -4,8 +4,8 @@ set -e # set -u # set -x -# shellcheck source=src/sync_template.sh -source sync_common.sh +# shellcheck source=./sync_template.sh +source ./sync_common.sh ############################################ # Prechecks