Skip to content

Commit

Permalink
fix conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jan 16, 2024
1 parent b707814 commit 55a5ccb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/repo-banner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
id: metadata
uses: ahmadnassri/action-metadata@v2

- name: Checkout ${{ steps.metadata.outputs.repository_name}}/.github
if: '${{ steps.metadata.outputs.repository_name}} != ".github"'
- name: Checkout ${{ steps.metadata.outputs.owner_login}}/.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: Symlink to `github/`
if: '${{ steps.metadata.outputs.repository_name}} == ".github"'
if: steps.metadata.outputs.repository_name == '.github'
run: |
ln -s github ${{github.workspace}}
Expand Down

0 comments on commit 55a5ccb

Please sign in to comment.