Skip to content

Commit

Permalink
fix inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Jan 18, 2024
1 parent 3ff3e33 commit ab364b0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/repo-banner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ jobs:

- name: Format Repo Metadata
id: meta
uses: actions/github-script@v5
uses: actions/github-script@v7
env:
README_NAME: ${{steps.readme.outputs.name}}
REPOSITORY_NAME: ${{ steps.metadata.outputs.repository_name }}
REPOSITORY_DESCRIPTION: ${{ steps.metadata.outputs.repository_description }}
with:
script: |
const wrapEmoji = (text) => {
Expand All @@ -54,9 +58,9 @@ jobs:
return text.replace(reEmoji, '<span class="emoji" role="img" aria-hidden="true">$&</span>');
}
let name = steps.readme.outputs.name || steps.metadata.outputs.repository_name;
let name = process.env.README_NAME || process.env.REPOSITORY_NAME
let type = 'Project';
let desc = steps.metadata.outputs.repository_description;
let desc = process.env.REPOSITORY_DESCRIPTION;
let output = '.github/banner.png';
// Logic to determine repository type and modify name and type accordingly
Expand Down

0 comments on commit ab364b0

Please sign in to comment.