From dfa3ed637fa020802a1a02f3abf61afb7adf276b Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Mon, 19 Jul 2021 19:12:29 +0530 Subject: [PATCH] Revert pr comment action changes and update imgur action --- .github/workflows/spectron_comment.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/spectron_comment.yml b/.github/workflows/spectron_comment.yml index fb565824..c748b960 100644 --- a/.github/workflows/spectron_comment.yml +++ b/.github/workflows/spectron_comment.yml @@ -34,22 +34,16 @@ jobs: path: ./pr_num.txt - name: List images run: ls -al - - name: Upload images to imgur - win32 - id: upload_screenshots_win32 - uses: devicons/public-upload-to-imgur@v2.2.1 + - name: Upload images to imgur + id: upload_screenshots + uses: devicons/public-upload-to-imgur@v2.2.2 with: - path: ./win32_test.png - client_id: ${{ secrets.IMGUR_CLIENT_ID }} - - name: Upload images to imgur - darwin - id: upload_screenshots_darwin - uses: devicons/public-upload-to-imgur@v2.2.1 - with: - path: ./darwin_test.png + path: ./*.png client_id: ${{ secrets.IMGUR_CLIENT_ID }} - name: Comment on the PR uses: jungwinter/comment@v1 env: - IMG_MARKDOWN: ${{ join([fromJSON(steps.upload_screenshots_win32.outputs.markdown_urls)[0], fromJSON(steps.upload_screenshots_darwin.outputs.markdown_urls)[0]], '') }} + IMG_MARKDOWN: ${{ join(fromJSON(steps.upload_screenshots.outputs.markdown_urls), '') }} MESSAGE: | Hi there, Here are screenshots of Hyper built from this pr.