diff --git a/.forgejo/workflows/push.yml b/.forgejo/workflows/push.yml index eded09a..acd8755 100644 --- a/.forgejo/workflows/push.yml +++ b/.forgejo/workflows/push.yml @@ -6,15 +6,10 @@ jobs: image: git.php.fail/lubiana/container/php:8.2 steps: - run: env | sort + - run: /usr/bin/git config --global --add safe.directory $GITHUB_WORKSPACE - run: /usr/bin/git init $GITHUB_WORKSPACE - - run: echo $GITHUB_WORKSPACE - run: /usr/bin/git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY - - run: echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY - - run: echo $GITHUB_REF_NAME - - run: echo $GITHUB_TOKEN - run: /usr/bin/git config --local gc.auto 0 - - run: /usr/bin/git config -l - - run: "/usr/bin/git config --local http.extraheader \"AUTHORIZATION: basic $GITHUB_TOKEN\"" - - run: /usr/bin/git config -l + - run: "/usr/bin/git config --local http.extraheader \"AUTHORIZATION: basic x-access-token:$GITHUB_TOKEN\"" - run: /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin $GITHUB_REF_NAME