From 394caf2c807070f31b41193aefc8f6e8d989c595 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 16:42:02 +0000 Subject: [PATCH] fix: push force --- action.yaml | 2 +- mirror.sh => entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename mirror.sh => entrypoint.sh (88%) diff --git a/action.yaml b/action.yaml index db4b839..e045054 100644 --- a/action.yaml +++ b/action.yaml @@ -16,4 +16,4 @@ runs: using: composite steps: - name: Mirror - run: ${{ gitea.action_path }}/mirror.sh + run: ${{ gitea.action_path }}/entrypoint.sh diff --git a/mirror.sh b/entrypoint.sh similarity index 88% rename from mirror.sh rename to entrypoint.sh index c538aee..0a13054 100755 --- a/mirror.sh +++ b/entrypoint.sh @@ -11,4 +11,4 @@ set -x git init -b main git remote add origin "$URL" git fetch --no-tags --prune --no-recurse-submodules origin "$GITHUB_SHA" -git push "$INPUT_URL" "$GITHUB_SHA:$GITHUB_REF" +git push -f "$INPUT_URL" "$GITHUB_SHA:$GITHUB_REF"