Skip to content

Commit

Permalink
Remove unnecessary PR comment creation on no changes
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Aug 24, 2024
1 parent da34e6b commit 6fdbb5e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/update-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,3 @@ jobs:
console.error('Error creating comment:', error);
core.setFailed(`Failed to create comment: ${error.message}`);
}
- name: Create PR comment on no changes
if: steps.git-check.outputs.changes != 'true'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |-
const prNumber = context.payload.pull_request.number;
try {
await github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'No changes were detected in the tutorials content. All files are up to date.'
});
} catch (error) {
console.error('Error creating comment:', error);
core.setFailed(`Failed to create comment: ${error.message}`);
}

0 comments on commit 6fdbb5e

Please sign in to comment.