2023-08-06 20:35:23 -04:00
|
|
|
name: Git Checkout
|
|
|
|
desciption: Checkout repository using alpite/git
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
2023-08-06 20:41:44 -04:00
|
|
|
container: alpine/git
|
|
|
|
steps:
|
2023-08-07 10:42:14 -04:00
|
|
|
- name: Checkout repository
|
2023-08-07 10:55:05 -04:00
|
|
|
uses: addnab/docker-run-action@v3
|
2023-08-07 10:42:14 -04:00
|
|
|
with:
|
2023-08-07 10:55:05 -04:00
|
|
|
image: alpine/git:latest
|
2023-08-07 11:05:40 -04:00
|
|
|
options: -v /mnt/swarm/gitea/runner/cache/${{ github.workspace }}:/git
|
2023-08-07 10:55:05 -04:00
|
|
|
run: |
|
2023-08-07 10:57:10 -04:00
|
|
|
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
|
2023-08-07 11:03:12 -04:00
|
|
|
git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
|
|
|
|
git status && echo "" && ls
|