Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive error for action output #5

Open
Marcin-Radecki opened this issue Jun 23, 2023 · 0 comments
Open

False positive error for action output #5

Marcin-Radecki opened this issue Jun 23, 2023 · 0 comments

Comments

@Marcin-Radecki
Copy link
Contributor

Marcin-Radecki commented Jun 23, 2023

On example on this run:

EA811: action create-featurenet step 5 Called step with id 'get-argocd-featurnet-app-name' output 'name' does not exist
EA811: action create-featurenet step 6 Called step with id 'get-argocd-featurnet-app-name' output 'name' does not exist
EA811: action create-featurenet step 8 Called step with id 'get-argocd-featurnet-app-name' output 'name' does not exist
EA811: action delete-featurenet step 6 Called step with id 'get-argocd-featurnet-app-name' output 'name' does not exist
EA811: action delete-featurenet step 9 Called step with id 'get-argocd-featurnet-app-name' output 'name' does not exist
This error comes from the below code

    - name: Get argocd featurenet app name
      id: get-argocd-featurnet-app-name
      shell: bash
      env:
        # yamllint disable-line rule:line-length
        APP_NAME: ${{ inputs.featurenet-name != '' && inputs.featurenet-name || format('{0}{1}', 'fe-', steps.get-ref-properties.outputs.branch-name-for-argo) }}
      run: |
        echo "name=${{ env.APP_NAME }}" >> $GITHUB_OUTPUT

Most likely problem is that validator sees GH expression and cannot parse name identifier correctly.

The workaround is:

    - name: Get argocd featurenet app name
      id: get-argocd-featurnet-app-name
      shell: bash
      env:
        # yamllint disable-line rule:line-length
        APP_NAME: ${{ inputs.featurenet-name != '' && inputs.featurenet-name || format('{0}{1}', 'fe-', steps.get-ref-properties.outputs.branch-name-for-argo) }}
      run: |
        name_local=${{ env.APP_NAME }}
        echo "name=$name_local" >> $GITHUB_OUTPUT
@ghost ghost self-assigned this Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant