This commit is contained in:
@@ -24,8 +24,12 @@ main() {
|
|||||||
git fetch --tags --depth=1 origin "${LATEST_TAG}"
|
git fetch --tags --depth=1 origin "${LATEST_TAG}"
|
||||||
git checkout "${LATEST_TAG}"
|
git checkout "${LATEST_TAG}"
|
||||||
|
|
||||||
|
|
||||||
# 3. Clone the GitHub Action's repo (this repo)
|
# 3. Clone the GitHub Action's repo (this repo)
|
||||||
ACTION_REPO_DIR="${TMPDIR}/action-repo"
|
ACTION_REPO_DIR="${TMPDIR}/action-repo"
|
||||||
|
#CLONE_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||||
|
CLONE_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git"
|
||||||
|
git clone "$CLONE_URL" "${ACTION_REPO_DIR}"
|
||||||
git clone "https://github.com/${GITHUB_REPOSITORY}.git" "${ACTION_REPO_DIR}"
|
git clone "https://github.com/${GITHUB_REPOSITORY}.git" "${ACTION_REPO_DIR}"
|
||||||
if [ -n "${GITHUB_SHA:-}" ]; then
|
if [ -n "${GITHUB_SHA:-}" ]; then
|
||||||
cd "${ACTION_REPO_DIR}"
|
cd "${ACTION_REPO_DIR}"
|
||||||
|
|||||||
Reference in New Issue
Block a user