Skip to content

Commit

Permalink
syntax5 fix for added output need hera action
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed May 30, 2023
1 parent 7bc80dd commit e9027c1
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 e9027c1

Please sign in to comment.