fix: correct ISSUE_LABELS parsing and logging
This commit is contained in:
parent
06f6737f96
commit
7c0d7d26e4
@ -9,7 +9,7 @@ runs:
|
|||||||
using: "docker"
|
using: "docker"
|
||||||
image: "Dockerfile"
|
image: "Dockerfile"
|
||||||
env:
|
env:
|
||||||
ISSUE_LABELS: ${{ gitea.event.issue.labels }}
|
ISSUE_LABELS: ${{ join(gitea.event.issue.labels.*.name, ',') }}
|
||||||
ISSUE_NUMBER: ${{ gitea.event.issue.number }}
|
ISSUE_NUMBER: ${{ gitea.event.issue.number }}
|
||||||
ODOO_TICKET_NUMBER: ${{ gitea.event.issue.ref }}
|
ODOO_TICKET_NUMBER: ${{ gitea.event.issue.ref }}
|
||||||
ISSUE_TITLE: ${{ gitea.event.issue.title }}
|
ISSUE_TITLE: ${{ gitea.event.issue.title }}
|
||||||
|
|||||||
4
main.go
4
main.go
@ -30,8 +30,10 @@ func main() {
|
|||||||
logger.Printf("ODOO_TICKET_NUMBER: %s\n", issueOdooTicketString)
|
logger.Printf("ODOO_TICKET_NUMBER: %s\n", issueOdooTicketString)
|
||||||
|
|
||||||
issueTitle := os.Getenv("ISSUE_TITLE")
|
issueTitle := os.Getenv("ISSUE_TITLE")
|
||||||
|
|
||||||
labelsEnv := os.Getenv("ISSUE_LABELS")
|
labelsEnv := os.Getenv("ISSUE_LABELS")
|
||||||
logger.Printf("ISSUE_TITLE: %s\n", reflect.TypeOf(labelsEnv))
|
logger.Printf("ISSUE_LABELS: %s\n", labelsEnv)
|
||||||
|
|
||||||
issueNumberString := os.Getenv("ISSUE_NUMBER")
|
issueNumberString := os.Getenv("ISSUE_NUMBER")
|
||||||
|
|
||||||
giteaToken := os.Getenv("GITEA_TOKEN")
|
giteaToken := os.Getenv("GITEA_TOKEN")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user