diff --git a/.github/workflows/push_images.yml b/.github/workflows/push_images.yml index af40489c..ffd40d33 100644 --- a/.github/workflows/push_images.yml +++ b/.github/workflows/push_images.yml @@ -100,8 +100,10 @@ jobs: [1]: https://github.com/peter-evans/create-pull-request - - name: Check outputs + - name: Comment back on the PR if: ${{ steps.create-pull-request.outputs.pull-request-number }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - echo "Pull Request Number - ${{ steps.create-pull-request.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.create-pull-request.outputs.pull-request-url }}" + gh api repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/comments --raw-field 'body=A PR to conda-store has been opened with updated screenshots - ${{ steps.create-pull-request.outputs.pull-request-url }}' +