From 4d2a749af4f714e6528e1c0b9b6856b6174bba84 Mon Sep 17 00:00:00 2001 From: Filias Heidt Date: Tue, 18 Feb 2025 16:31:22 +0100 Subject: [PATCH] add action --- action.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..9d14470 --- /dev/null +++ b/action.yml @@ -0,0 +1,23 @@ +name: 'Checkout' +description: 'Checkout a Git repository at a particular version' +inputs: + repository: + description: 'Repository name with owner. For example, actions/checkout' + default: ${{ gitlab.repository }} + 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 }} + +runs: + using: "composite" + steps: + - id: checkout repo + run: | + cd $GITHUB_WORKSPACE + git clone https://${GITHUB_ACTOR}:${inputs.token}@${GITHUB_SERVER_URL}/${inputs.repository}