Update git/checkout/action.yaml
This commit is contained in:
parent
44489ba6d4
commit
2db894bc71
@ -6,8 +6,9 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
run: |
|
run: |
|
||||||
mkdir -p /tmp/workspace && mv * /tmp/workspace/ || echo Nothing to copy
|
mkdir -p /tmp/workspace && mv * /tmp/workspace/ || echo Nothing to copy
|
||||||
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 -n /tmp/workspace/* . && rm -rf /tmp/workspace
|
mv -n /tmp/workspace/* . && rm -rf /tmp/workspace
|
||||||
git status && echo "" && ls
|
git status && echo "" && ls
|
||||||
|
shell: sh
|
||||||
|
Loading…
Reference in New Issue
Block a user