Skip to content

Commit

Permalink
Merge pull request #74 from TerrenceMcGuinness-NOAA/feature_1643_badges
Browse files Browse the repository at this point in the history
added more test in hera action file
  • Loading branch information
TerrenceMcGuinness-NOAA committed May 31, 2023
2 parents fe91084 + 3483561 commit c568238
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/hera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
runs-on: ubuntu-latest
outputs:
labels: ${{ steps.get_labels_id.outputs.labels }}
test: ${{ steps.get_labels_id.outputs.tests }}
steps:
- id: get_labels_id
run: |
labels="$(gh api repos/$OWNER/$REPO_NAME/pulls/$PULL_REQUEST_NUMBER --jq '.labels.[].name')" >> "$GITHUB_OUTPUT"
echo "$labels"
echo "test=foo" >> "$GITHUB_OUTPUT"
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -51,8 +53,10 @@ jobs:
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.outputs.test }}
pending:
if: "!contains(steps.pending1.env.labels, 'CI-Hera-Passed') && ${{ github.event.pull_request.merged == true }}"
Expand Down

0 comments on commit c568238

Please sign in to comment.