An action for checking out a repository
Find a file
2024-03-19 22:00:37 +01:00
scripts feat: initial action implementation 2024-03-19 22:00:37 +01:00
action.yml feat: initial action implementation 2024-03-19 22:00:37 +01:00
LICENSE.md feat: initial action implementation 2024-03-19 22:00:37 +01:00
README.md feat: initial action implementation 2024-03-19 22:00:37 +01:00

checkout

This action checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it.

Only a single commit is fetched by default, for the ref/sha that triggered the workflow. The auth token is persisted in the local git config. This enables your scripts to run authenticated git commands.

This action is only written in shell (bash).

Usage

uses: actions/checkout:1.0.0
with:
  repository: ${{ github.server_url }}/${{ github.repository }}.git
  token: ${{ github.token }}
  path: .
  ref: ${{ github.ref || github.sha }}