diff --git a/.github/workflows/build-boot-iso.yml b/.github/workflows/build-boot-iso.yml index 3fcdc5f35f66..a3059f35aff1 100644 --- a/.github/workflows/build-boot-iso.yml +++ b/.github/workflows/build-boot-iso.yml @@ -18,6 +18,7 @@ on: permissions: contents: read statuses: write + pull-requests: write jobs: pr-info: @@ -79,6 +80,25 @@ jobs: echo "image_description=pr$pr_num-$sha" >> $GITHUB_OUTPUT fi + - name: Mark comment as seen + if: github.event_name != 'workflow_dispatch' + env: + GH_TOKEN: ${{ github.token }} + run: | + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/OWNER/REPO/issues/comments/COMMENT_ID/reactions \ + -f content='eyes' + # https://docs.github.com/en/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-an-issue-comment + #uses: peter-evans/create-or-update-comment@v3 + ## https://github.com/marketplace/actions/create-or-update-comment + #with: + # comment-id: ${{ github.event.comment.id }} + # reactions: eyes + # reactions-edit-mode: append + - name: Set outputs id: set_outputs run: | diff --git a/.github/workflows/build-boot-iso.yml.j2 b/.github/workflows/build-boot-iso.yml.j2 index 65362031ce13..e93062e9100b 100644 --- a/.github/workflows/build-boot-iso.yml.j2 +++ b/.github/workflows/build-boot-iso.yml.j2 @@ -12,6 +12,7 @@ on: permissions: contents: read statuses: write + pull-requests: write jobs: pr-info: @@ -73,6 +74,25 @@ jobs: echo "image_description=pr$pr_num-$sha" >> $GITHUB_OUTPUT fi + - name: Mark comment as seen + if: github.event_name != 'workflow_dispatch' + env: + GH_TOKEN: ${{ github.token }} + run: | + gh api \ + --method POST \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + /repos/OWNER/REPO/issues/comments/COMMENT_ID/reactions \ + -f content='eyes' + # https://docs.github.com/en/rest/reactions/reactions?apiVersion=2022-11-28#create-reaction-for-an-issue-comment + #uses: peter-evans/create-or-update-comment@v3 + ## https://github.com/marketplace/actions/create-or-update-comment + #with: + # comment-id: ${{ github.event.comment.id }} + # reactions: eyes + # reactions-edit-mode: append + - name: Set outputs id: set_outputs run: |