Update git/checkout/action.yaml
This commit is contained in:
		@@ -1,16 +1,14 @@
 | 
			
		||||
name: Git Checkout
 | 
			
		||||
desciption: Checkout repository using alpite/git
 | 
			
		||||
 | 
			
		||||
runs:
 | 
			
		||||
  using: composite
 | 
			
		||||
  container: alpine/git
 | 
			
		||||
  steps:
 | 
			
		||||
    - name: Checkout repository
 | 
			
		||||
      uses: addnab/docker-run-action@v3
 | 
			
		||||
      with:
 | 
			
		||||
        image: alpine/git:latest
 | 
			
		||||
        options: -v /mnt/swarm/gitea/runner/cache/${{ github.workspace }}:/git
 | 
			
		||||
        run: |
 | 
			
		||||
          HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
 | 
			
		||||
          git clone -b "${{ github.ref_name  }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
 | 
			
		||||
          git status && echo "" && ls
 | 
			
		||||
name: Git Checkout
 | 
			
		||||
desciption: Checkout repository using alpite/git
 | 
			
		||||
 | 
			
		||||
runs:
 | 
			
		||||
  using: composite
 | 
			
		||||
  container: alpine/git
 | 
			
		||||
  steps:
 | 
			
		||||
    - name: Checkout repository
 | 
			
		||||
      run: |
 | 
			
		||||
          mkdir -p /tmp/workspace && mv * /tmp/workspace/
 | 
			
		||||
          HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
 | 
			
		||||
          git clone -b "${{ github.ref_name  }}" "https://${{ github.token }}@$HOST/${{ github.repository }}.git" .
 | 
			
		||||
          mv /tmp/workspace/* . && rm -rf /tmp/workspace
 | 
			
		||||
          git status && echo "" && ls
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user