From 85a8e421a98ae5c1bce83e6e34232cb110fea37c Mon Sep 17 00:00:00 2001 From: Mandresy RABENJAHARISON Date: Wed, 20 Aug 2025 15:16:57 +0300 Subject: [PATCH] feat: use our gitea instance url directly --- action.yml | 6 ------ main.go | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 7a97c4a..1b42d1f 100644 --- a/action.yml +++ b/action.yml @@ -5,11 +5,6 @@ branding: icon: git-branch color: purple -inputs: - gitea_url: - description: "Gitea Instance URL." - required: true - runs: using: "docker" image: "Dockerfile" @@ -18,6 +13,5 @@ runs: ISSUE_NUMBER: ${{ gitea.event.issue.number }} ISSUE_TITLE: ${{ gitea.event.issue.title }} GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} - GITEA_URL: ${{ inputs.gitea_url }} REPO_OWNER: ${{ gitea.event.repository.owner.login }} REPO_NAME: ${{ gitea.event.repository.name }} \ No newline at end of file diff --git a/main.go b/main.go index f3485f3..4dd2df1 100644 --- a/main.go +++ b/main.go @@ -29,11 +29,11 @@ func main() { labelsStr := os.Getenv("ISSUE_LABELS") giteaToken := os.Getenv("GITEA_TOKEN") - giteaAPIURL := os.Getenv("GITEA_URL") + giteaAPIURL := "https://gitea.ethumada.com" repoOwner := os.Getenv("REPO_OWNER") repoName := os.Getenv("REPO_NAME") - if issueNumberStr == "" || issueTitle == "" || giteaToken == "" || giteaAPIURL == "" || repoOwner == "" || repoName == "" { + if issueNumberStr == "" || issueTitle == "" || giteaToken == "" || repoOwner == "" || repoName == "" { logger.Println("Error: some environment variables are missing.") os.Exit(1) }