Files
configure-pages/action.yml

20 lines
748 B
YAML
Raw Normal View History

2022-06-07 14:18:05 -05:00
name: 'Get the Pages base URL'
description: 'Get the base URL where the GitHub Pages site will be hosted'
2022-06-07 11:26:59 -07:00
runs:
using: 'node16'
2022-06-07 12:15:52 -07:00
main: 'dist/index.js'
2022-06-07 22:21:50 -07:00
inputs:
token:
description: 'GitHub token'
default: ${{ github.token }}
required: true
2022-06-07 11:26:59 -07:00
outputs:
base_url:
description: 'GitHub Pages site full base URL. Examples: "https://octocat.github.io/my-repo/", "https://octocat.github.io/", "https://www.example.com/"'
origin:
description: 'GitHub Pages site origin. Examples: "https://octocat.github.io", "https://www.example.com"'
host:
description: 'GitHub Pages site host. Examples: "octocat.github.io", "www.example.com"'
base_path:
description: 'GitHub Pages site full base path. Examples: "/my-repo/" or "/"'