Action, Job Definition error message invalid workflow #12295

Closed
opened 2025-11-02 10:04:44 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @StefanSa on GitHub (Jan 5, 2024).

Description

Hi there,
I have this job definition, but not everything is recognized or implemented correctly.

on:
  push:
    branches: [ "*" ]
    tags: [ "*" ]

jobs:
  haproxy-dependencies:
    uses: "./.github/workflows/haproxy-deps.yml"
    with:
      DEBIAN_CODENAME: "bookworm"
      CLANG_VERSION: 16

  dist-stable:
    needs: [ "haproxy-dependencies" ]
    uses: "./.github/workflows/haproxy-dist.yml"
    secrets: "inherit" # for Docker image publication
    with:
      DEBIAN_CODENAME: "bookworm"
      CLANG_VERSION: 16
      HAPROXY_FLAVOUR: "stable"
      # https://git.haproxy.org/?p=haproxy-2.9.git;a=commit;h=v2.9.0
      HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy-2.9.git"
      HAPROXY_VERSION: "2.9-stable"
      HAPROXY_GITREF: "v2.9.0"
      HAPROXY_DATAPLANEAPI_VERSION: "v2.9.0"

  dist-dev:
    needs: [ "haproxy-dependencies" ]
    uses: "./.github/workflows/haproxy-dist.yml"
    secrets: "inherit" # for Docker image publication
    with:
      DEBIAN_CODENAME: "bookworm"
      CLANG_VERSION: 16
      HAPROXY_FLAVOUR: "dev"
      # https://git.haproxy.org/?p=haproxy.git;a=commit;h=9d869b10dea0f4234eb14787f658d6b64a0a4021
      HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy.git"
      HAPROXY_VERSION: "3.0-dev"
      HAPROXY_GITREF: "9d869b10dea0f4234eb14787f658d6b64a0a4021"
      HAPROXY_DATAPLANEAPI_VERSION: "master"

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idwith

error message gitea:

2024/01/05 13:14:11 ...actions/workflows.go:119:DetectWorkflows() [W] ignore invalid workflow "haproxy-deps.yml": unknown on type: map[string]interface {}{"CLANG_VER
SION":map[string]interface {}{"required":true, "type":"number"}, "DEBIAN_CODENAME":map[string]interface {}{"required":true, "type":"string"}}
2024/01/05 13:14:11 ...actions/workflows.go:119:DetectWorkflows() [W] ignore invalid workflow "haproxy-dist.yml": unknown on type: map[string]interface {}{"CLANG_VER
SION":map[string]interface {}{"required":true, "type":"number"}, "DEBIAN_CODENAME":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_DATAPLANEAPI_V
ERSION":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_FLAVOUR":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_GITREF":map[
string]interface {}{"required":true, "type":"string"}, "HAPROXY_GITREPO":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_VERSION":map[string]inte
rface {}{"required":true, "type":"string"}}

Gitea Version

1.22.0+dev-514-gdd5693387

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

openleap 15.5

How are you running Gitea?

Self hosted on SuSe openleap 15.5

Database

None

Originally created by @StefanSa on GitHub (Jan 5, 2024). ### Description Hi there, I have this job definition, but not everything is recognized or implemented correctly. ``` on: push: branches: [ "*" ] tags: [ "*" ] jobs: haproxy-dependencies: uses: "./.github/workflows/haproxy-deps.yml" with: DEBIAN_CODENAME: "bookworm" CLANG_VERSION: 16 dist-stable: needs: [ "haproxy-dependencies" ] uses: "./.github/workflows/haproxy-dist.yml" secrets: "inherit" # for Docker image publication with: DEBIAN_CODENAME: "bookworm" CLANG_VERSION: 16 HAPROXY_FLAVOUR: "stable" # https://git.haproxy.org/?p=haproxy-2.9.git;a=commit;h=v2.9.0 HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy-2.9.git" HAPROXY_VERSION: "2.9-stable" HAPROXY_GITREF: "v2.9.0" HAPROXY_DATAPLANEAPI_VERSION: "v2.9.0" dist-dev: needs: [ "haproxy-dependencies" ] uses: "./.github/workflows/haproxy-dist.yml" secrets: "inherit" # for Docker image publication with: DEBIAN_CODENAME: "bookworm" CLANG_VERSION: 16 HAPROXY_FLAVOUR: "dev" # https://git.haproxy.org/?p=haproxy.git;a=commit;h=9d869b10dea0f4234eb14787f658d6b64a0a4021 HAPROXY_GITREPO: "https://git.haproxy.org/?p=haproxy.git" HAPROXY_VERSION: "3.0-dev" HAPROXY_GITREF: "9d869b10dea0f4234eb14787f658d6b64a0a4021" HAPROXY_DATAPLANEAPI_VERSION: "master" ``` https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idwith error message gitea: ``` 2024/01/05 13:14:11 ...actions/workflows.go:119:DetectWorkflows() [W] ignore invalid workflow "haproxy-deps.yml": unknown on type: map[string]interface {}{"CLANG_VER SION":map[string]interface {}{"required":true, "type":"number"}, "DEBIAN_CODENAME":map[string]interface {}{"required":true, "type":"string"}} 2024/01/05 13:14:11 ...actions/workflows.go:119:DetectWorkflows() [W] ignore invalid workflow "haproxy-dist.yml": unknown on type: map[string]interface {}{"CLANG_VER SION":map[string]interface {}{"required":true, "type":"number"}, "DEBIAN_CODENAME":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_DATAPLANEAPI_V ERSION":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_FLAVOUR":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_GITREF":map[ string]interface {}{"required":true, "type":"string"}, "HAPROXY_GITREPO":map[string]interface {}{"required":true, "type":"string"}, "HAPROXY_VERSION":map[string]inte rface {}{"required":true, "type":"string"}} ``` ### Gitea Version 1.22.0+dev-514-gdd5693387 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System openleap 15.5 ### How are you running Gitea? Self hosted on SuSe openleap 15.5 ### Database None
GiteaMirror added the topic/gitea-actionsissue/needs-feedbacktype/bug labels 2025-11-02 10:04:44 -06:00
Author
Owner

@lunny commented on GitHub (Jan 7, 2024):

Relative workflow reference hasn't been implemented.

@lunny commented on GitHub (Jan 7, 2024): Relative workflow reference hasn't been implemented.
Author
Owner

@StefanSa commented on GitHub (Jan 7, 2024):

Hi @lunny
Thank you for your quick reply.
Is there an alternative / equivalent to this?

@StefanSa commented on GitHub (Jan 7, 2024): Hi @lunny Thank you for your quick reply. Is there an alternative / equivalent to this?
Author
Owner

@Zettat123 commented on GitHub (Mar 29, 2024):

Now we can support reuse workflows. I think this issue might be caused by some syntax errors.

@StefanSa Could you show us the on section of "haproxy-deps.yml" and "haproxy-dist.yml"?

@Zettat123 commented on GitHub (Mar 29, 2024): Now we can support reuse workflows. I think this issue might be caused by some syntax errors. @StefanSa Could you show us the `on` section of "haproxy-deps.yml" and "haproxy-dist.yml"?
Author
Owner

@GiteaBot commented on GitHub (Apr 28, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Apr 28, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12295