Skip to content

Commit 999e227

Browse files
committed
Use $(basename "$GITHUB_REPOSITORY")
1 parent 4516516 commit 999e227

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
- name: Clone target repo
3131
run: |
3232
git clone https://x-access-token:${{ secrets.TARGET_REPO_PAT }}@github.com/explodinglabs/explodinglabs.com.git target-repo
33-
rm -rf target-repo/superstack
34-
mkdir -p target-repo/superstack
35-
cp -a site/. target-repo/superstack/
33+
rm -rf target-repo/$(basename "$GITHUB_REPOSITORY")
34+
mkdir -p target-repo/$(basename "$GITHUB_REPOSITORY")
35+
cp -a site/. target-repo/$(basename "$GITHUB_REPOSITORY")/
3636
env:
3737
GIT_AUTHOR_NAME: GitHub Actions
3838
GIT_COMMITTER_NAME: GitHub Actions

0 commit comments

Comments
 (0)