checkout/action.yml
2024-11-27 14:16:08 +01:00

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 }}