From 36d6d75058a3c5a3564bc4d4fe4729b55a3d2bc6 Mon Sep 17 00:00:00 2001 From: Diego Parrilla Date: Thu, 28 Nov 2024 00:37:47 +0100 Subject: [PATCH] only display on screen no comment --- .github/workflows/process_pr.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/process_pr.yml b/.github/workflows/process_pr.yml index 180dca5..7eaf03d 100644 --- a/.github/workflows/process_pr.yml +++ b/.github/workflows/process_pr.yml @@ -10,8 +10,6 @@ jobs: runs-on: ubuntu-latest permissions: contents: write # Needed to push changes - issues: write # Needed to comment on issues and PRs - pull-requests: write # Needed to comment on PRs steps: - name: Checkout the code uses: actions/checkout@v3 @@ -74,21 +72,6 @@ jobs: exit 1 fi - - name: Comment on Pull Request - if: failure() - uses: actions/github-script@v6 - with: - script: | - const issueNumber = context.payload.pull_request.number; - const errorMessage = `Validation failed during workflow execution.\n\nPlease address the following issues:\n${{ steps.validate_fields.outputs.error }}`; - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: issueNumber, - body: errorMessage, - }); - - - name: Stop Job on Failure if: failure() run: |