checkout/action.yml

19 lines
534 B
YAML
Raw Normal View History

2024-11-27 13:16:08 +00:00
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 }}
2024-12-06 10:28:12 +00:00
# RIRE TODO
#git checkout ${{ github.ref }}