Skip to content

If defining env variables different to the ones from example it fails when checking default #2

@maZahaca

Description

@maZahaca

Current behavior:

I defined variables CF_TOKEN and CF_ZONE and used them as following:

token: ${{ secrets.CF_TOKEN }}
zone: ${{ secrets.CF_ZONE }}

And because of the default values are expected as specific names it fails with error:

Download action repository 'kriasoft/create-dns-record@v1'
##[error](Line: 22, Col: 14):
##[error](Line: 26, Col: 5): 'default' is already defined
##[error](Line: 22, Col: 14): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CLOUDFLARE_TOKEN
##[error](Line: 26, Col: 5): 'default' is already defined
##[error]Fail to load /home/runner/work/_actions/kriasoft/create-dns-record/v1/action.yaml

Expected

Any variables can be passed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions