Skip to content

Commit

Permalink
Merge pull request #82 from TerrenceMcGuinness-NOAA/feature_1643_badges
Browse files Browse the repository at this point in the history
Update hera.yaml
  • Loading branch information
TerrenceMcGuinness-NOAA authored May 31, 2023
2 parents b748866 + 664cb3c commit 56496ff
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/hera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ on:
types: [closed]

jobs:

get_labels:
runs-on: ubuntu-latest
outputs:
labels: ${{ steps.get_labels_id.outputs.labels }}
test: ${{ steps.get_labels_id.outputs.tests }}
steps:
- name: get lables steps
id: get_labels_id
run: |
labels="$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[].name')" >> $env:GITHUB_OUTPUT
labels="$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[].name')" >> $GITHUB_OUTPUT
echo "$labels"
echo "test=foo" >> $env:GITHUB_ENV
echo "test=foo" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.event.repository.name }}
PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
outputs:
labels: ${{ steps.get_labels_steps.outputs.labels }}
test: ${{ steps.get_labels_steps.outputs.tests }}



passed:
Expand All @@ -47,17 +47,17 @@ jobs:

test:
runs-on: ubuntu-latest
needs: get_labels
needs:
- get_labels

steps:
- name: Test
- run: |
echo "labels: $labels"
echo "needs: ${{ needs.get_labels.outputs.labels }}"
echo "env: ${{ env.labels }}"
echo "test: $test"
env:
labels: ${{ needs.get_labels.outputs.labels }}
test: ${{ needs.get_labels.env.test }}
test: ${{ needs.get_labels.outputs.test }}
pending:
if: "!contains(steps.pending1.env.labels, 'CI-Hera-Passed') && ${{ github.event.pull_request.merged == true }}"
Expand Down

0 comments on commit 56496ff

Please sign in to comment.