17 lines
513 B
YAML
17 lines
513 B
YAML
name: 'Checkout'
|
|
description: 'Checkout the current repository'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Clone Repository
|
|
shell: sh
|
|
run: |
|
|
URL_WITH_HTTP=${{ github.server_url }}
|
|
URL=${URL_WITH_HTTP#http://}
|
|
URL=${URL#https://}
|
|
git clone http://wf:${{ github.token }}@${URL}/${{ github.repository }}.git ${{ github.workspace }}
|
|
- name: Checkout Repository
|
|
shell: sh
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
git checkout ${{ github.ref }}
|