From 296415e52e4aa7a0b3171d52e0129aab12296df9 Mon Sep 17 00:00:00 2001 From: Dhruv Bhanushali Date: Tue, 5 Dec 2023 19:30:35 +0400 Subject: [PATCH 1/2] Pass core to the labelling job as well --- .github/workflows/pr_automations.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_automations.yml b/.github/workflows/pr_automations.yml index 4270cbbb92c..1826c56ef99 100644 --- a/.github/workflows/pr_automations.yml +++ b/.github/workflows/pr_automations.yml @@ -71,7 +71,7 @@ jobs: github-token: ${{ secrets.ACCESS_TOKEN }} script: | const { main } = await import('${{ github.workspace }}/automations/js/src/label_pr.mjs') - await main(github) + await main(github, core) - name: Perform PR automations uses: actions/github-script@v7 From 525f2a107976c1174a766f3d677feb14763cf794 Mon Sep 17 00:00:00 2001 From: Dhruv Bhanushali Date: Tue, 5 Dec 2023 19:33:05 +0400 Subject: [PATCH 2/2] Perform both automations independently of each other --- .github/workflows/pr_automations.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr_automations.yml b/.github/workflows/pr_automations.yml index 1826c56ef99..bfc8c0e6c1b 100644 --- a/.github/workflows/pr_automations.yml +++ b/.github/workflows/pr_automations.yml @@ -75,6 +75,7 @@ jobs: - name: Perform PR automations uses: actions/github-script@v7 + if: success() || failure() with: github-token: ${{ secrets.ACCESS_TOKEN }} script: |