Skip to content

url_encode_string

Actions
Easily URL encode a string
v1
Latest
Star (0)

url_encode_string

Bash, POSIX-compliant (I think) script to URL-encode a string.

That's it, that's all it does.

Usage

name: URL Encode String Example

on: [push]

jobs:
  encode:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

      - name: URL Encode String
        id: encode
        uses: bwhitehead0/url_encode_string@v1
        with:
          string: "Hello World!"

      - name: Show Encoded String
        run: echo "Encoded string: ${{ steps.encode.outputs.encoded_string }}"

Inputs

Input Description Required Default
string The string to encode true N/A

Outputs

Output Description
encoded_string The URL-encoded string

If this action were called with id: encode, one could use the resulting URL-encoded string as ${{ steps.encode.outputs.encoded_string }}

url_encode_string is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Easily URL encode a string
v1
Latest

url_encode_string is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.