Added cleanup.

This commit is contained in:
2025-07-12 17:30:11 -07:00
parent e6f976dd5a
commit 171a724a37

View File

@@ -123,6 +123,15 @@ runs:
type: "${{ steps.configure_find.outputs.type }}"
minDepth: 1
maxDepth: 2
- name: "Clean DoNotShip folders."
if: ${{ steps.configure_find.outputs.type == 'd' }}
run: |
# Remove folders containing "DoNotShip" or "DontShip" from the output directory
OUTPUT_DIR="${{ steps.find_output_dir.outputs.fullPath }}"
if [[ -d "$OUTPUT_DIR" ]]; then
find "$OUTPUT_DIR" -type d \( -name "*DoNotShip*" -o -name "*DontShip*" \) -exec rm -rf {} + 2>/dev/null || true
fi
shell: bash
- name: "Upload Artifacts."
uses: https://github.com/ChristopherHX/gitea-upload-artifact@v4
with: