Skip to content

Commit

Permalink
only display on screen no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoparrilla committed Nov 27, 2024
1 parent 6bd0175 commit 36d6d75
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/process_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 36d6d75

Please sign in to comment.