Skip to content

Commit

Permalink
Merge pull request #36 from TerrenceMcGuinness-NOAA/feature_1643_badges
Browse files Browse the repository at this point in the history
syntax3 fix for added output need hera action
  • Loading branch information
TerrenceMcGuinness-NOAA authored May 30, 2023
2 parents 954ee7a + ac0fded commit 480959a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/hera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
get_labels:
runs-on: ubuntu-latest
outputs:
LABELS: ${{ steps.get_labels_id.outputs.LABELS }}
labels: ${{ steps.get_labels_id.outputs.labels }}
steps:
- name: Get the PR labels dynamically
id: getr_labels_id
run: |
LABELS="$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[].name')" >> $GITHUB_OUTPUT
echo "$LABELS"
labels="$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[].name')" >> $GITHUB_OUTPUT
echo "$labels"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Passed
uses: schneegans/dynamic-badges-action@v1.6.0
with:
input_var: ${{ needs.get_labels.outputs.LABELS }}
input_var: ${{ needs.get_labels.outputs.labels }}
auth: ${{ secrets.CLI_DYNAMIC_BADGES }}
gistID: 13060fc1a0cd9368a4ee94171785fe9d
filename: hera.json
Expand Down

0 comments on commit 480959a

Please sign in to comment.