Action to setup git. It configures git access so it can commit and push to branches. Git with SSH authentication is used so that it is possible to push to protected branches.
This action should be replaced by just using actions/checkout@v2
with an SSH key. It is converted to typescript for short-term use
before that is done.
Input | Required | Description |
---|---|---|
no | Email to use with git | |
username | no | Username to use with git |
Variable | Required | Description |
---|---|---|
GIT_DEPLOY_KEY | yes | RSA key to authenticate to git repository |
The action is used as follows:
- uses: smartlyio/setup-git-action@v1
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}