Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaranionjc committed Oct 10, 2023
1 parent 2c0ba69 commit 8614a55
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/commands-gallery-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'Commands Gallery')
steps:
- run: echo "Building JumpCloud Commands Gallery Event"
Check-PR-Labels:
needs: ["Filter-Branch"]
runs-on: ubuntu-latest
outputs:
RELEASE_TYPE: ${{ steps.validate.outputs.RELEASE_TYPE }}
steps:
- name: Validate-PR-Version-Labels
id: validate
shell: pwsh
run: |
$PR_LABEL_LIST=$(curl -s "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" | jq -r '.[].name')
if ("Commands Gallery" -in $PR_LABEL_LIST) {
write-host "Starting Build for Commands Gallery"
}
else {
write-host "No Commands Gallery label found, skipping build"
exit 1
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Check-PR-Labels:
# needs: ["Filter-Branch"]
# runs-on: ubuntu-latest
# outputs:
# RELEASE_TYPE: ${{ steps.validate.outputs.RELEASE_TYPE }}
# steps:
# - name: Validate-PR-Version-Labels
# id: validate
# shell: pwsh
# run: |
# $PR_LABEL_LIST=$(curl -s "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels" | jq -r '.[].name')
# if ("Commands Gallery" -in $PR_LABEL_LIST) {
# write-host "Starting Build for Commands Gallery"
# }
# else {
# write-host "No Commands Gallery label found, skipping build"
# exit 1
# }
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Test-Commands-Gallery:
needs: ["Check-PR-Labels", "Filter-Branch"]
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8614a55

Please sign in to comment.