Skip to content

Commit

Permalink
Post PR comment after successful dry run build
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Aug 13, 2024
1 parent e88ae89 commit 620056d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/zowe-cli-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,18 +178,28 @@ jobs:

- name: Find Current PR
id: find-pr
if: ${{ steps.publish.outcome == 'success' && inputs.release-type == 'release' }}
if: ${{ steps.publish.outcome == 'success' }}
uses: jwalton/gh-find-current-pr@v1
with:
state: all
state: ${{ inputs.release-type == 'release' && 'all' || 'open' }}

- name: Comment on PR
if: ${{ steps.find-pr.outputs.number }}
if: ${{ steps.find-pr.outputs.number && inputs.dry-run == false }}
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.find-pr.outputs.pr }}
path: summary.md

- name: Comment on PR (Dry Run)
if: ${{ steps.find-pr.outputs.number && inputs.dry-run == true }}
uses: marocchino/sticky-pull-request-comment@v2
with:
number: ${{ steps.find-pr.outputs.pr }}
message: |
Dry run build succeeded for Zowe CLI bundle v${{ env.BUNDLE_VERSION }} (`${{ inputs.package-tag }}`)!
To create a Release Candidate bundle, run the workflow [here](https://github.com/zowe/zowe-cli-standalone-package/actions/workflows/zowe-cli-bundle.yaml) for this branch and select type "release".
test:
needs: build
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 620056d

Please sign in to comment.