diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b3b7ff5c..11246b07 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -216,6 +216,23 @@ jobs: name: pluginVerifier-result path: ${{ github.workspace }}/build/reports/pluginVerifier + # Post a comment on PRs with a link to download the plugin + prComment: + name: PR comment + if: github.event_name == 'pull_request' + needs: [ build, test, inspectCode, verify ] + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - name: Post artifact link + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh pr comment ${{ github.event.pull_request.number }} \ + --repo ${{ github.repository }} \ + --body "✅ Build successful! For testing, [download plugin zip](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) from the Artifacts section." + # Prepare a draft release for GitHub Releases page for the manual verification # If accepted and published, release workflow would be triggered releaseDraft: