IssueRaiser

"Unrecognized named-value: 'env'. Located at position 1 within expression" when used in reusable workflow jobs

<!-- πŸ‘‹ You're opening a bug report against the GitHub Actions **runner application**. πŸ›‘ Please stop if you're not certain that the bug you're seeing is in the runner application - if you have general problems with actions, workflows, or runners, please see the [GitHub Community Support Forum](https://github.community/c/code-to-cloud/52) which is actively monitored. Using the forum ensures that we route your problem to the correct team. πŸ˜ƒ --> **Describe the bug** Usage of env in workflow that uses reusable workflow generates "Unrecognized named-value: 'env'. Located at position 1 within expression" **To Reproduce** Use the following yml: ``` name: Test Workflow on: push: env: SOMETHING: 1000 test: name: call workflow uses: ./.github/workflows/callee.yml secrets: inherit with: run_url: "{run_url}" message: ${{ env.SOMETHING }} ``` **Expected behavior** env.SOMETHING is usable and can be passed into reusable workflow **Actual behavior** ```The workflow is not valid. .github/workflows/create-branch.yml (Line: #, Col: ##): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SOMETHING``` ## Runner Version and Platform Version of your runner? OS of the machine running the runner? ubuntu-latest ## What's not working? ![image](https://user-images.githubusercontent.com/113383549/212578036-3f333f32-73aa-4e1f-aac6-e611715b4e6c.png)

Posted by nive-copia on Jan 16, 2023, 1:05 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

support (Software)

"Unrecognized named-value: 'env'. Located at position 1 within expression" when used in reusable workflow jobs

nive-copiaJan 16, 2023, 1:05 AM

<!-- πŸ‘‹ You're opening a bug report against the GitHub Actions **runner application**. πŸ›‘ Please stop if you're not certain that the bug you're seeing is in the runner application - if you have general problems with actions, workflows, or runners, please see the [GitHub Community Support Forum](https://github.community/c/code-to-cloud/52) which is actively monitored. Using the forum ensures that we route your problem to the correct team. πŸ˜ƒ --> **Describe the bug** Usage of env in workflow that uses reusable workflow generates "Unrecognized named-value: 'env'. Located at position 1 within expression" **To Reproduce** Use the following yml: ``` name: Test Workflow on: push: env: SOMETHING: 1000 test: name: call workflow uses: ./.github/workflows/callee.yml secrets: inherit with: run_url: "{run_url}" message: ${{ env.SOMETHING }} ``` **Expected behavior** env.SOMETHING is usable and can be passed into reusable workflow **Actual behavior** ```The workflow is not valid. .github/workflows/create-branch.yml (Line: #, Col: ##): Unrecognized named-value: 'env'. Located at position 1 within expression: env.SOMETHING``` ## Runner Version and Platform Version of your runner? OS of the machine running the runner? ubuntu-latest ## What's not working? ![image](https://user-images.githubusercontent.com/113383549/212578036-3f333f32-73aa-4e1f-aac6-e611715b4e6c.png)

Comments (0)

No comments yet. Start the discussion.

Comment on this issue