Skip to content

Commit

Permalink
Merge branch 'next' into ST-DDT-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Oct 16, 2024
2 parents 0358b79 + d0bfc57 commit 322538d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR

on:
pull_request:
pull_request_target:

permissions: {} # Permissions per job

Expand Down Expand Up @@ -72,7 +72,6 @@ jobs:
- name: Write comment
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const repoArgs = { owner: context.repo.owner, repo: context.repo.repo };
const issue_number = context.issue.number;
Expand All @@ -94,8 +93,9 @@ jobs:
(comment) => comment.user?.type === 'Bot' && comment.body?.includes(body)
);
const isSuccess = ${{ needs.check-code-generation.outputs.generate == 'success' && needs.check-code-generation.outputs.diff == 'success' }};
if (isSuccess) {
const generateSuccess = ${{ needs.check-code-generation.outputs.generate == 'success' }};
const diffSuccess = ${{ needs.check-code-generation.outputs.diff == 'success' }};
if (generateSuccess && diffSuccess) {
// Delete the bot comment if present
if (botComment != null) {
await github.rest.issues.deleteComment({
Expand Down

0 comments on commit 322538d

Please sign in to comment.