feat: use our gitea instance url directly
This commit is contained in:
parent
77d557fca5
commit
85a8e421a9
@ -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 }}
|
||||
4
main.go
4
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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user