This is an automated email from the ASF dual-hosted git repository.

gopidesu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site-archive.git


The following commit(s) were added to refs/heads/main by this push:
     new 2d42ef5754 Fix diskspace issue for s3 to github (#6)
2d42ef5754 is described below

commit 2d42ef5754bb7f3228097535cdd34976f753ef3f
Author: GPK <gopidesupa...@gmail.com>
AuthorDate: Thu May 8 10:15:15 2025 +0100

    Fix diskspace issue for s3 to github (#6)
---
 .github/workflows/s3-to-github.yml | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/s3-to-github.yml 
b/.github/workflows/s3-to-github.yml
index 2648876f59..d09d1a2aab 100644
--- a/.github/workflows/s3-to-github.yml
+++ b/.github/workflows/s3-to-github.yml
@@ -60,11 +60,19 @@ jobs:
           aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
           aws-region: us-east-2
 
+      - name: Remove some stuff we don't need
+        run: |
+          sudo rm -rf /usr/share/dotnet
+          sudo rm -rf /opt/ghc
+          sudo rm -rf "/usr/local/share/boost"
+          sudo rm -rf "$AGENT_TOOLSDIRECTORY"
+
+      - name: Create /mnt/airflow-site-archive directory
+        run: sudo mkdir -p /mnt/airflow-site-archive && sudo chown -R 
"${USER}" /mnt/airflow-site-archive
+
       - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
-        uses: actions/checkout@v4
-        with:
-          lfs: true
-          fetch-depth: 1
+        run: |
+          git clone --depth 1 
https://github.com/apache/airflow-site-archive.git /mnt/airflow-site-archive
 
       - name: "Check space available"
         run: df -h
@@ -73,6 +81,7 @@ jobs:
         run: |
           python3 -m pip install uv
           uv run ./scripts/s3_to_github.py --bucket-path 
${{inputs.source-location}} --local-path ${{inputs.local-destination}} 
--document-folder ${{inputs.document-folder}}
+        working-directory: /mnt/airflow-site-archive
 
       - name: Commiting changes
         run: |
@@ -83,4 +92,5 @@ jobs:
           git add .
           echo "Running git commit"
           git commit -m "Sync S3 to GitHub" || echo "No changes to commit"
-          git push --force origin main
\ No newline at end of file
+          git push --force origin main
+        working-directory: /mnt/airflow-site-archive
\ No newline at end of file

Reply via email to