diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml index 8dad614..b20c8ff 100644 --- a/.github/workflows/test-reusable.yml +++ b/.github/workflows/test-reusable.yml @@ -46,6 +46,8 @@ jobs: run: tree -a _redirects - name: Show tree (_site) run: tree -a _site + - name: Show index.html + run: cat _site/index.html - name: Post-Run run: | ${{ inputs.post-run }} \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15f0a58..fa08383 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,6 +49,14 @@ jobs: default_redirect: "http://www.d.com" post-run: bats ./tests/test_default_url.bats + test-default-redirect-url-root: + name: Default (Redirect URL, root) + uses: ./.github/workflows/test-reusable.yml + with: + urls_config: not_needed.yml + default_redirect: /some_root_path + post-run: echo + test-default-message: name: Default (Message) uses: ./.github/workflows/test-reusable.yml diff --git a/README.md b/README.md index 85f8266..e72ccce 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ See [How it works](#how-it-works). |Input|Description|Default|Required| |-----|-----------|-------|:------:| |`urls_config`|
The path to a YAML file associating redirect keys to URLs, e.g.:
---|`.github/urls.yml`|no| -|`default_redirect`|
test1: https://www.bookcity.ca/
test2: https://www.gladdaybookshop.com
Default behaviour for /
or any 404, can be either:
* a URL to redirect to
* a message to display
Default behaviour for /
or any 404, can be either:
* a URL (absolute) to redirect to (e.g. https://www.aol.com/
)
* a URL (relative) to redirect to from the domain (e.g. /blog
)
* a message to display (e.g. Nothing here!
)