diff --git a/.github/actions/backport/action.yml b/.github/actions/backport/action.yml index 9b1c6ab..1d46c6a 100644 --- a/.github/actions/backport/action.yml +++ b/.github/actions/backport/action.yml @@ -62,6 +62,15 @@ runs: env: GH_TOKEN: ${{ inputs.GITHUB_TOKEN }} + - name: Report success + shell: ${{ env.shell }} + run: | + gh pr comment "${{ github.event.pull_request.number }}" \ + --repo ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} \ + --body "👍 Created $(gh pr view --json url --jq .url) to backport into [\`${{ inputs.TARGET_BRANCH }}\`](${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/tree/${{ inputs.TARGET_BRANCH }})." + env: + GH_TOKEN: ${{ inputs.GITHUB_TOKEN } + - name: Report errors shell: ${{ env.shell }} if: failure() && steps.assert-branch-exists.outputs.failure-already-reported != 'true'