From 2d3e30666fccaf9394b18a8ec19a8012cd12720f Mon Sep 17 00:00:00 2001 From: Javier Evans Date: Tue, 27 Feb 2024 15:29:17 -0800 Subject: [PATCH] fix: remove dev container thumbs down --- .github/workflows/dev-preview.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.github/workflows/dev-preview.yml b/.github/workflows/dev-preview.yml index 4d03e697..ea648330 100644 --- a/.github/workflows/dev-preview.yml +++ b/.github/workflows/dev-preview.yml @@ -103,24 +103,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PR_NUMBER: ${{ github.event.issue.number }} NODE_ID: ${{ github.event.comment.node_id }} - - notify-job: - runs-on: ubuntu-22.04 - needs: [build-and-push-dev-container] - if: ${{ always() && contains(needs.*.result, 'failure') }} <-- check that status of the previous job - steps: - - name: Notify on Failure - run: | - gh api graphql --silent --raw-field query="mutation AddReaction {addReaction(input:{subjectId:\"$NODE_ID\",content:THUMBS_DOWN}){reaction{content}subject{id}}}" - gh api graphql --silent --raw-field query="mutation RemoveReaction {removeReaction(input:{subjectId:\"$NODE_ID\",content:EYES}){reaction{content}subject{id}}}" - ( - echo "**${{ github.workflow }}**" - echo "**Something went wrong!**" - echo - echo "**Details:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" - ) | \ - gh pr comment "${PR_NUMBER}" --repo ${{ github.repository }} -F - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.issue.number }} - NODE_ID: ${{ github.event.comment.node_id }} +