Skip to content

Commit

Permalink
Merge pull request #38 from TerrenceMcGuinness-NOAA/feature_1643_badges
Browse files Browse the repository at this point in the history
syntax5 fix for added output need hera action
  • Loading branch information
TerrenceMcGuinness-NOAA committed May 30, 2023
2 parents 03380c8 + e9027c1 commit eb7eb1f
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/hera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,21 @@ jobs:
outputs:
output_labels: ${{ steps.get_labels_id.outputs.labels }}
steps:
- name: Get the PR labels dynamically
id: get_labels_id
run: |
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 }}
OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
- id: get_labels_id
run: |
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 }}
OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}

passed:
needs:
- get-labels
if: ${{ github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
needs: get-labels
if: ${{ github.event.pull_request.merged == true }}

steps:
- name: Passed
Expand Down

0 comments on commit eb7eb1f

Please sign in to comment.