Skip to content

Commit

Permalink
Update sync-private-repo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nsswifter authored Nov 27, 2024
1 parent a117e75 commit f6dd621
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/sync-private-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
# Copy all files from the public repo into the private repo
- name: Copy Public Repo Files to Private Repo
run: |
# Go back to the root of the public repo (where the files are located)
cd ${{ github.workspace }} # Ensure we're in the root of the public repository
cp -r ./* ./private-repo/ # Copy all files from the public repo to the private repo
# Ensure we're back in the root directory of the public repository
cd ${{ github.workspace }} # This is the workspace folder where the public repo is checked out
# Copy all files from the public repo (excluding the private-repo directory) into the private repo
cp -r ./* ./private-repo/ # Copy all files into the private repo folder, but avoid overwriting the folder itself
# Commit and push the changes to the private repo
- name: Commit and Push Changes to Private Repo
run: |
Expand Down

0 comments on commit f6dd621

Please sign in to comment.