diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 000000000..53357335d --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -0,0 +1,17 @@ +--- +name: PR Comment +on: + workflow_run: + workflows: ["PR validation"] + types: + - completed + +permissions: + pull-requests: write + +jobs: + comment: + uses: AdobeDocs/adp-devsite-workflow/.github/workflows/pr-comment.yml@DEVSITE-2424 + with: + run_id: ${{ github.event.workflow_run.id }} + event: ${{ github.event.workflow_run.event }} diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 51af60b59..0f3f28667 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -5,6 +5,7 @@ on: jobs: validate: - uses: AdobeDocs/commerce-contributor/.github/workflows/validate-pr.yml@main + uses: AdobeDocs/commerce-contributor/.github/workflows/validate-pr.yml@workflow-update with: base_ref: ${{ github.event.pull_request.base.ref }} + pr_number: ${{ github.event.pull_request.number }}