From 1fd4071a5b425b47743aed7cd021118d5c27eadd Mon Sep 17 00:00:00 2001 From: Arpita Patel Date: Wed, 29 May 2024 21:11:13 -0500 Subject: [PATCH] Update cd_pipeline.yml --- .github/workflows/cd_pipeline.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd_pipeline.yml b/.github/workflows/cd_pipeline.yml index 39ba76d..cf4eb18 100644 --- a/.github/workflows/cd_pipeline.yml +++ b/.github/workflows/cd_pipeline.yml @@ -20,12 +20,19 @@ jobs: name: Deploy to GitHub Pages steps: - - name: Checkout - uses: actions/checkout@v3 + # - name: Checkout + # uses: actions/checkout@v3 + # with: + # fetch-depth: 0 + # # Ensure detached HEAD state to avoid conflicts with the main branch + # ref: refs/heads/main + - name: Checkout repository B + uses: actions/checkout@v2 with: - fetch-depth: 0 - # Ensure detached HEAD state to avoid conflicts with the main branch - ref: refs/heads/main + repository: CIROH-UA/ciroh-ua.github.io # Replace with your username and repo + persist-credentials: false + ref: gh-pages + - name: Download a Build Artifact Version uses: dawidd6/action-download-artifact@v2.26.1