From 866d70964e6f723895d721a56561d2c44e218d43 Mon Sep 17 00:00:00 2001 From: shreyabhandari0220 <115904795+shreyabhandari0220@users.noreply.github.com> Date: Fri, 4 Oct 2024 21:16:19 -0400 Subject: [PATCH] Update deploy-content-staging.yml --- .github/workflows/deploy-content-staging.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-content-staging.yml b/.github/workflows/deploy-content-staging.yml index 684e1fdfbb2..00d5eb47633 100644 --- a/.github/workflows/deploy-content-staging.yml +++ b/.github/workflows/deploy-content-staging.yml @@ -42,8 +42,10 @@ jobs: - name: Set environment variable for spreadsheet key run: echo "URL_SPREADSHEET_KEY=${{ secrets.URL_SPREADSHEET_KEY }}" >> $GITHUB_ENV - - name: Remove existing content - run: rm -rf content-staging-build/src/content-sources/oatutor/* + - name: Pull the latest content + run: | + cd content-staging-build + git pull origin content-staging - name: Create Content Directory run: mkdir -p content-staging-build/src/content-sources/oatutor/Content @@ -53,7 +55,7 @@ jobs: cd content-staging-build/src/content-sources/oatutor/Content python3 /home/runner/work/OATutor-Tooling/content_script/final.py online full - - name: Move and prepare files + - name: Move and merge new files run: | cd content-staging-build/src/content-sources/oatutor mv "OpenStax Content" "content-pool"