Boolean inputs are not actually booleans in composite actions
<!-- π 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** I'm not sure if closed issues are monitored, as there was no reaction from official side at all. This is a new issue related to https://github.com/actions/runner/issues/1483. For **composite actions** boolean inputs are not actually booleans. **To Reproduce** ```yaml inputs: ... generate-release-notes: description: ... required: false type: boolean default: false runs: using: composite steps: - name: Create Release uses: actions/github-script@v6 with: script: | github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, ... generate_release_notes: ${{ inputs.generate-release-notes && 'true' || 'false' }} }); ``` Caller: ```yaml - uses: flobernd/actions/github/create-release@master with: tag-name: v1.2.4 generate-release-notes: true ``` This line always evaluates to `false`: ``` generate_release_notes: ${{ inputs.generate-release-notes && 'true' || 'fals
Posted by flobernd on Nov 2, 2022, 9:26 AM
Tags
Related issues
- Add 65536 size support for maps
- TypeScript 7.1 Iteration Plan
- nvim-treeconfig: upstream nvim-treesitter
- Add the "action" and "method" attributes to <button>
- [FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
- > We were imposed GitHub for so many exercises!
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
support (Software)
Add 65536 size support for maps
TypeScript 7.1 Iteration Plan
nvim-treeconfig: upstream nvim-treesitter
Add the "action" and "method" attributes to <button>
[FEATURE] Support multiple Connector accounts (same connector, different accounts) in Claude and Claude Code on the web (claude.ai/code)
> We were imposed GitHub for so many exercises!
Add support for Visual Studio 2026 Integration
Support for Helm v4
Boolean inputs are not actually booleans in composite actions
<!-- π 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** I'm not sure if closed issues are monitored, as there was no reaction from official side at all. This is a new issue related to https://github.com/actions/runner/issues/1483. For **composite actions** boolean inputs are not actually booleans. **To Reproduce** ```yaml inputs: ... generate-release-notes: description: ... required: false type: boolean default: false runs: using: composite steps: - name: Create Release uses: actions/github-script@v6 with: script: | github.rest.repos.createRelease({ owner: context.repo.owner, repo: context.repo.repo, ... generate_release_notes: ${{ inputs.generate-release-notes && 'true' || 'false' }} }); ``` Caller: ```yaml - uses: flobernd/actions/github/create-release@master with: tag-name: v1.2.4 generate-release-notes: true ``` This line always evaluates to `false`: ``` generate_release_notes: ${{ inputs.generate-release-notes && 'true' || 'fals
Comments (0)
No comments yet. Start the discussion.