Update action.yml
This commit is contained in:
+3
-22
@@ -79,28 +79,9 @@ inputs:
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Checkout code
|
||||
shell: bash
|
||||
run: |
|
||||
OUTPUT_DIR="outputs"
|
||||
LOG_FILE="${OUTPUT_DIR}/checkout.log"
|
||||
mkdir -p "$OUTPUT_DIR"
|
||||
|
||||
git clone -q https://gitea.psi.ch/tligui_y/test-ci.git ./temp-ci
|
||||
|
||||
echo "⚙️ Starting checkout..." | tee -a "$LOG_FILE"
|
||||
git clone --depth=1 "https://github.com/${GITHUB_REPOSITORY}.git" . \
|
||||
&>> "$LOG_FILE"
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [ $EXIT_CODE -eq 0 ]; then
|
||||
echo "✅ Checkout completed!" | tee -a "$LOG_FILE"
|
||||
echo "Exit Code: 0" >> "$LOG_FILE"
|
||||
else
|
||||
echo "❌ Checkout failed" | tee -a "$LOG_FILE"
|
||||
echo "Exit Code: $EXIT_CODE" >> "$LOG_FILE"
|
||||
exit $EXIT_CODE
|
||||
fi
|
||||
- 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