Skip to content

Commit

Permalink
cleanup: remove comment action
Browse files Browse the repository at this point in the history
  • Loading branch information
GabsEdits authored May 9, 2024
1 parent f9d6e17 commit f22de4a
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,4 @@ jobs:
run: pnpm install

- name: Build project
run: pnpm run docs:build

- name: Check status and comment
if: ${{ always() }}
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const result = process.env['GITHUB_RUN_CONCLUSION'];
const context = github.context;
const octokit = new github.GitHub(process.env.GITHUB_TOKEN);
if (context.eventName === 'pull_request') {
const prNumber = context.payload.pull_request.number;
octokit.issues.createComment({
...context.repo,
issue_number: prNumber,
body: result === 'success' ? 'The build was successful!' : 'The build failed!'
});
}
run: pnpm run docs:buil

0 comments on commit f22de4a

Please sign in to comment.