diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml index 012c406cef..525c343fe6 100644 --- a/.github/workflows/discord-notification.yml +++ b/.github/workflows/discord-notification.yml @@ -24,7 +24,7 @@ jobs: DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_AI_BOT_TOKEN }} merge_success_emoji: - if: github.event.pull_request.merged == true + if: github.event.action == 'closed' uses: ./.github/workflows/shareable-discord-notification.yml with: PR_STATUS: "merged" diff --git a/.github/workflows/pr-ready-review.yml b/.github/workflows/pr-ready-review.yml index f2e06aebd1..b431a9d385 100644 --- a/.github/workflows/pr-ready-review.yml +++ b/.github/workflows/pr-ready-review.yml @@ -9,17 +9,10 @@ jobs: if: github.event.pull_request.draft == false runs-on: ubicloud-standard-2 steps: - - name: Generate an installation token - id: app - uses: actions/create-github-app-token@v2 - with: - app-id: ${{ vars.INTERNAL_APP_ID }} - private-key: ${{ secrets.INTERNAL_APP_KEY }} - - name: Add review comment uses: actions/github-script@v7 with: - github-token: ${{ steps.app.outputs.token }} + github-token: ${{ secrets.PUBLIC_REPO_TOKEN }} script: | await github.rest.issues.createComment({ owner: context.repo.owner,