Files
tools/action.yml
RemiZOffAlex f0cf3ab0a3
All checks were successful
Test Actions / Builder (push) Successful in 8s
Обновить action.yml
2025-10-18 23:55:18 +03:00

56 lines
2.0 KiB
YAML

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.
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 }}
outputs:
ref:
description: 'The branch, tag or SHA that was checked out'
commit:
description: 'The commit SHA that was checked out'
runs:
using: "composite"
# env:
# PYTHONPATH: $PYTHONPATH:${{ gitea.action_path }}
steps:
- run: env
- run: pwd
- run: ls -la
- run: cp ${GITHUB_ACTION_PATH}/gitconfig /root/.gitconfig
# - run: git config --global "url.https://${ACTIONS_RUNTIME_TOKEN}:x-oauth-basic@codex.r10x.net/.insteadOf" "${GITHUB_SERVER_URL}/"
# - run: git config list --global
# - run: git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} ${PWD}
# - run: ls -la
- run: ${{ github.action_path }}/execute.py ${{ github.token }}
- run: |
echo "${{ github.action_path }}"
echo "$PYTHONPATH"
export PYTHONPATH=${{ gitea.action_path }}:$PYTHONPATH
echo "$PYTHONPATH"
- run: export PYTHONPATH=${{ gitea.action_path }}:$PYTHONPATH
- run: env
- run: python -m executor git
# main: execute.py
# post: dist/index.js