ASIM Process Event schema parser with its sample and test data for VMware Carbon Black Cloud #2949
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Slash Command Dispatch - Publish To Partner Center | |
env: | |
REPO_OWNER: "${{ vars.REPO_OWNER }}" | |
REPO_NAME: "${{ vars.REPO_NAME }}" | |
on: | |
issue_comment: | |
types: [created] | |
pull_request: | |
types: [ closed ] | |
jobs: | |
checkAutomatedPR: | |
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork && github.event.issue.pull_request && contains(github.event.comment.body, '/partnercenter') }} | |
uses: ./.github/workflows/checkAutomatedPR.yaml | |
isWorkflowRunAllowedToUser: | |
if: ${{ github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork && github.event.issue.pull_request && contains(github.event.comment.body, '/partnercenter') }} | |
uses: ./.github/workflows/allowedWorkflowRun.yaml | |
pullRequestStatus: | |
if: ${{ !github.event.pull_request.head.repo.fork && github.event.issue.pull_request && contains(github.event.comment.body, '/partnercenter') }} | |
uses: ./.github/workflows/pullRequestStatus.yaml | |
slashCommandDispatchPartnerCenterPublish: | |
runs-on: ubuntu-latest | |
needs: [isWorkflowRunAllowedToUser, pullRequestStatus, checkAutomatedPR] | |
if: ${{ success() && needs.isWorkflowRunAllowedToUser.outputs.isWorkflowRunAllowed == 'True' && needs.pullRequestStatus.outputs.isPullRequestMerged == 'True' && needs.checkAutomatedPR.outputs.isAutomatedPR == 'False' && !github.event.pull_request.head.repo.fork}} | |
steps: | |
- name: Slash Command Dispatch | |
uses: peter-evans/slash-command-dispatch@67dfeb76529b35541a7c536976cba367cd2d364b | |
with: | |
commands: partnercenter | |
repository: ${{env.REPO_OWNER}}/${{env.REPO_NAME}} | |
issue-type: pull-request | |
reactions: false |