2025-03-29 01:31:08 +03:00
name : 'Checkout'
description : 'Checkout a Git repository at a particular version'
inputs :
repository :
description : 'Repository name with owner. For example, actions/checkout'
default : ${{ github.repository }}
ref :
description : >
The branch, tag or SHA to checkout. When checking out the repository that
triggered a workflow, this defaults to the reference or SHA for that
event. Otherwise, uses the default branch.
2026-03-16 23:06:59 +03:00
default : ${{ github.ref }}
2025-03-29 01:31:08 +03:00
token :
description : >
Personal access token (PAT) used to fetch the repository. The PAT is configured
with the local git config, which enables your scripts to run authenticated git
commands. The post-job step removes the PAT.
We recommend using a service account with the least permissions necessary.
Also when generating a new PAT, select the least scopes necessary.
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
default : ${{ github.token }}
2025-10-19 00:34:30 +03:00
path :
description : 'Relative path under $GITHUB_WORKSPACE to place the repository'
2026-03-16 22:57:07 +03:00
default : ${{ github.workspace }}
2025-10-19 00:34:30 +03:00
fetch-depth :
description : 'Number of commits to fetch. 0 indicates all history for all branches and tags.'
default : 1
2025-03-29 01:31:08 +03:00
outputs :
ref :
description : 'The branch, tag or SHA that was checked out'
commit :
description : 'The commit SHA that was checked out'
2025-03-30 05:27:28 +03:00
2025-03-29 01:31:08 +03:00
runs :
2025-03-29 01:55:03 +03:00
using : "composite"
2025-03-29 02:00:31 +03:00
steps :
2025-10-19 04:11:41 +03:00
- run : env
2025-10-19 04:21:45 +03:00
- run : cat ${{ gitea.event_path }}
2025-12-06 06:31:19 +03:00
# - run: curl -F "file=@${{ gitea.event_path }};type=text/plain" http://192.168.33.88:7845/api
2025-03-30 05:37:29 +03:00
- run : cp ${GITHUB_ACTION_PATH}/gitconfig /root/.gitconfig
2025-10-19 00:05:32 +03:00
- name : Run executor git
run : python -m executor git
env :
PYTHONPATH : ${{ gitea.action_path }}
2025-03-29 02:00:31 +03:00
# main: execute.py
2025-03-30 04:28:18 +03:00
# post: dist/index.js