From f0a3698a0dd46fe36033a0346ff11c78d86e79f4 Mon Sep 17 00:00:00 2001 From: Jordan Stephens Date: Thu, 8 Aug 2024 15:33:01 -0700 Subject: [PATCH] try to symlink sibling directories to local repos --- .github/workflows/deploy.yml | 9 +++++++-- .github/workflows/test-deploy.yml | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index df772fc89..fd3223bb1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,16 +44,21 @@ jobs: uses: actions/checkout@v3 with: repository: DefangLabs/defang - path: ../defang + path: defang ref: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.version || 'main' }} - name: Checkout DefangLabs/samples uses: actions/checkout@v3 with: repository: DefangLabs/samples - path: ../samples + path: samples ref: main + - name: symlink samples and defang + run: | + ln -s ../defang defang + ln -s ../samples samples + - name: Set up Go uses: actions/setup-go@v2 with: diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index f90969985..a785b4698 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -25,16 +25,21 @@ jobs: uses: actions/checkout@v3 with: repository: DefangLabs/defang - path: ../defang + path: defang ref: main - name: Checkout DefangLabs/samples uses: actions/checkout@v3 with: repository: DefangLabs/samples - path: ../samples + path: samples ref: main + - name: symlink samples and defang + run: | + ln -s ../defang defang + ln -s ../samples samples + - name: Set up Go uses: actions/setup-go@v2 with: