|
5 | 5 | permissions: |
6 | 6 | contents: read |
7 | 7 | issues: read |
8 | | - pull-requests: read |
| 8 | + pull-requests: write # To comment back on the PR |
9 | 9 | id-token: write |
10 | 10 |
|
11 | 11 | jobs: |
|
43 | 43 | - run: | |
44 | 44 | number=$(echo '${{ needs.trigger_cluster_test_basic.outputs.result }}' | jq -r '.number') |
45 | 45 | echo "Deploy scratchnet pipeline triggered for [Commit ${{ needs.get_head.outputs.sha }} in ${{ needs.get_head.outputs.repo }}](https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}/files/${{ needs.get_head.outputs.sha }}), please approve it in CircleCI: https://app.circleci.com/pipelines/github/DACH-NY/canton-network-internal/${number}" |
| 46 | + - name: Comment on the PR |
| 47 | + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
| 48 | + with: |
| 49 | + script : | |
| 50 | + await github.rest.issues.createComment({ |
| 51 | + owner: context.repo.owner, |
| 52 | + repo: context.repo.repo, |
| 53 | + issue_number: context.issue.number, |
| 54 | + body: "Deploy cluster test triggered for [Commit ${{ needs.get_head.outputs.sha }} in ${{ needs.get_head.outputs.repo }}](https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}/files/${{ needs.get_head.outputs.sha }}), please contact a Contributor to approve it in CircleCI: https://app.circleci.com/pipelines/github/DACH-NY/canton-network-internal/${number}" |
| 55 | + }); |
46 | 56 |
|
47 | 57 |
|
48 | 58 | trigger_cluster_test_hdm: |
|
63 | 73 | - run: | |
64 | 74 | number=$(echo '${{ needs.trigger_cluster_test_hdm.outputs.result }}' | jq -r '.number') |
65 | 75 | echo "Deploy scratchnet HDM pipeline triggered for [Commit ${{ needs.get_head.outputs.sha }} in ${{ needs.get_head.outputs.repo }}](https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}/files/${{ needs.get_head.outputs.sha }}), please approve it in CircleCI: https://app.circleci.com/pipelines/github/DACH-NY/canton-network-internal/${number}" |
| 76 | + - name: Comment on the PR |
| 77 | + uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 |
| 78 | + with: |
| 79 | + script : | |
| 80 | + await github.rest.issues.createComment({ |
| 81 | + owner: context.repo.owner, |
| 82 | + repo: context.repo.repo, |
| 83 | + issue_number: context.issue.number, |
| 84 | + body: "Deploy HDM pipeline triggered for [Commit ${{ needs.get_head.outputs.sha }} in ${{ needs.get_head.outputs.repo }}](https://github.com/${{ github.repository }}/pull/${{ github.event.issue.number }}/files/${{ needs.get_head.outputs.sha }}), please contact a Contributor to approve it in CircleCI: https://app.circleci.com/pipelines/github/DACH-NY/canton-network-internal/${number}" |
| 85 | + }); |
0 commit comments