Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-11-23 22:30:47 +00:00
parent 435a522f61
commit b4c5103d79

View File

@ -1,16 +1,14 @@
name: Git Checkout name: Git Checkout
desciption: Checkout repository using alpite/git desciption: Checkout repository using alpite/git
runs: runs:
using: composite using: composite
container: alpine/git container: alpine/git
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: addnab/docker-run-action@v3 run: |
with: mkdir -p /tmp/workspace && mv * /tmp/workspace/
image: alpine/git:latest HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
options: -v /mnt/swarm/gitea/runner/cache/${{ github.workspace }}:/git git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
run: | mv /tmp/workspace/* . && rm -rf /tmp/workspace
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%') git status && echo "" && ls
git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
git status && echo "" && ls