https://github.com/step-security/change-string-case-action
Github Action: Make a string lowercase, uppercase, or capitalized. Secure drop-in replacement for ASzc/change-string-case-action.
https://github.com/step-security/change-string-case-action
step-security-maintained-actions
Last synced: 11 months ago
JSON representation
Github Action: Make a string lowercase, uppercase, or capitalized. Secure drop-in replacement for ASzc/change-string-case-action.
- Host: GitHub
- URL: https://github.com/step-security/change-string-case-action
- Owner: step-security
- License: isc
- Created: 2023-12-03T00:03:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-07-28T00:19:21.000Z (11 months ago)
- Last Synced: 2025-07-28T02:28:07.464Z (11 months ago)
- Topics: step-security-maintained-actions
- Language: JavaScript
- Homepage: https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions
- Size: 1.6 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# StepSecurity Maintained `Change String Case` Action
Forked from [ASzc/change-string-case-action](https://github.com/ASzc/change-string-case-action)
This Action accepts any string, and outputs three different versions of that string:
- lowercase (`XyZzY` -> `xyzzy`)
- uppercase (`XyZzY` -> `XYZZY`)
- capitalized (`Xyzzy` -> `Xyzzy`)
You can access the outputted strings through the job outputs context. See docs [here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjobs_idoutputs), or the Example Usage section below.
## Inputs
### `string`
**Required** The string you want manipulated
## Outputs
### `lowercase`
`inputStr.toLowerCase()`
Example: `XyZzY` -> `xyzzy`
### `uppercase`
`inputStr.toUpperCase()`
Example: `XyZzY` -> `XYZZY`
### `capitalized`
`inputStr.charAt(0).toUpperCase() + inputStr.slice(1).toLowerCase()`
Example: `XyZzY` -> `Xyzzy`
## Example Usage
```yaml
name: SomeWorkflow
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- id: string
uses: step-security/change-string-case-action@v6
with:
string: XyZzY
- id: step2
run: echo ${{ steps.string.outputs.lowercase }}
```