From b707814acc65eed1368d91ce236ba5b91bc56ba1 Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Tue, 16 Jan 2024 17:07:13 -0600 Subject: [PATCH] play with symlinks --- .github/workflows/repo-banner.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/repo-banner.yml b/.github/workflows/repo-banner.yml index 4f79c38f..ca47cc26 100644 --- a/.github/workflows/repo-banner.yml +++ b/.github/workflows/repo-banner.yml @@ -17,23 +17,25 @@ jobs: contents: write steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Fetch repo metadata id: metadata uses: ahmadnassri/action-metadata@v2 - name: Checkout ${{ steps.metadata.outputs.repository_name}}/.github - if: '${{ steps.metadata.outputs.repository_name}} !== ".github"' + if: '${{ steps.metadata.outputs.repository_name}} != ".github"' uses: actions/checkout@v3 with: repository: '${{ steps.metadata.outputs.owner_login }}/.github' ref: 'main' path: 'github' - - name: Checkout outselves (if we're .github) + - name: Symlink to `github/` if: '${{ steps.metadata.outputs.repository_name}} == ".github"' - uses: actions/checkout@v3 - with: - path: 'github' + run: | + ln -s github ${{github.workspace}} - name: Format Repo Metadata id: meta