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

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


The following commit(s) were added to refs/heads/fix-nospace by this push:
     new c778876793 Update workflow to use mount dir
c778876793 is described below

commit c7788767938d6ec382250d7d59b8a8a5a9b1dbf0
Author: Pavan Kumar <[email protected]>
AuthorDate: Fri May 2 07:54:50 2025 +0100

    Update workflow to use mount dir
---
 .github/workflows/github-to-s3.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/github-to-s3.yml 
b/.github/workflows/github-to-s3.yml
index 7bd316382f..64eb7186fb 100644
--- a/.github/workflows/github-to-s3.yml
+++ b/.github/workflows/github-to-s3.yml
@@ -68,11 +68,22 @@ 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
+
       - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
         uses: actions/checkout@v4
         with:
           lfs: true
           fetch-depth: 2 # We need to fetch 2 commits to get it work with 
last_commit sync type
+          path: /mnt/airflow-site-archive
 
       - name: "Syncing ${{ github.ref }} ( ${{ github.sha }} )"
         env:
@@ -81,4 +92,5 @@ jobs:
           ls -la
           python3 -m pip install uv
           uv run ./scripts/github_to_s3.py --bucket-path 
${{inputs.destination-location}} --local-path ${{inputs.local-path}} \
-          --document-folder ${{inputs.document-folder}} --commit-sha 
${COMMIT_SHA} --sync-type ${{ inputs.sync-type }}
\ No newline at end of file
+          --document-folder ${{inputs.document-folder}} --commit-sha 
${COMMIT_SHA} --sync-type ${{ inputs.sync-type }}
+        working-directory: /mnt/airflow-site-archive

Reply via email to