1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-11-28 15:09:16 +01:00

add input for action to override action host

This commit is contained in:
GABeech 2022-06-14 22:18:07 -04:00
parent 2202a283a7
commit ea0806b2ec

View file

@ -71,6 +71,13 @@ inputs:
set-safe-directory: set-safe-directory:
description: Add repository path as safe.directory for Git global config by running `git config --global --add safe.directory <path>` description: Add repository path as safe.directory for Git global config by running `git config --global --add safe.directory <path>`
default: true default: true
setHost:
description: >
override the github host that is set automatically to the github instance the action was called from.
This is useful if you need to clone from an instance that is not the one your action is running from.
For example, you need to clone a cloud hosted repo from an action run by an on prem instance.
required: false
runs: runs:
using: node16 using: node16
main: dist/index.js main: dist/index.js