Update git/checkout/action.yaml
This commit is contained in:
parent
837fbd88a1
commit
c0f7c1c2ed
@ -3,10 +3,12 @@ desciption: Checkout repository using alpite/git
|
|||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
container: git
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
container: git
|
||||||
|
options: -v ".:/app"
|
||||||
run: |
|
run: |
|
||||||
|
cd /app
|
||||||
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" .
|
||||||
|
Loading…
Reference in New Issue
Block a user