Skip to content

Commit

Permalink
play with symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jan 16, 2024
1 parent 0fe329b commit b707814
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/repo-banner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b707814

Please sign in to comment.