Update action.yml
This commit is contained in:
+4
-16
@@ -70,22 +70,10 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Silent Checkout
|
||||
run: |
|
||||
LOG=checkout.log
|
||||
echo "📥 Starting custom checkout..." > $LOG
|
||||
|
||||
# Init repo
|
||||
git init . >> $LOG 2>&1
|
||||
git remote add origin ${{ github.server_url }}/${{ github.repository }} >> $LOG 2>&1
|
||||
|
||||
# Fetch uniquement le commit courant
|
||||
git fetch --depth=1 origin ${{ github.sha }} >> $LOG 2>&1
|
||||
|
||||
# Checkout le commit
|
||||
git checkout FETCH_HEAD >> $LOG 2>&1
|
||||
|
||||
echo "✅ Checkout complete" >> $LOG
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Install optional apt packages
|
||||
if: inputs.apt_packages != ''
|
||||
|
||||
Reference in New Issue
Block a user