Update git/checkout/action.yaml
This commit is contained in:
parent
435a522f61
commit
b4c5103d79
@ -6,11 +6,9 @@ runs:
|
|||||||
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
|
|
||||||
options: -v /mnt/swarm/gitea/runner/cache/${{ github.workspace }}:/git
|
|
||||||
run: |
|
|
||||||
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
|
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
|
||||||
git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
|
git clone -b "${{ github.ref_name }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
|
||||||
|
mv /tmp/workspace/* . && rm -rf /tmp/workspace
|
||||||
git status && echo "" && ls
|
git status && echo "" && ls
|
||||||
|
Loading…
Reference in New Issue
Block a user