mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2025-12-06 07:28:04 +08:00
9531e25616138a6d01decdbb7952fb08e51fb15f
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1. - [Release notes](https://github.com/bitinn/node-fetch/releases) - [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md) - [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1) Signed-off-by: dependabot[bot] <support@github.com>
Change String Case GitHub 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, 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
lowercase
inputStr.charAt(0).toUpperCase() + inputStr.slice(1)
Example: XyZzY -> Xyzzy
Example Usage
name: SomeWorkflow
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- id: string
uses: ASzc/change-string-case-action@v1
with:
string: XyZzY
- id: step2
run: echo ${{ steps.string.outputs.lowercase }}
Languages
JavaScript
100%