From f22de4ae7ed42381965f7a2bc6d7db8a58e59820 Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Thu, 9 May 2024 15:51:24 +0300 Subject: [PATCH] cleanup: remove comment action --- .github/workflows/pr.yml | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6c2a3e4..e3d1cf4 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -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