From 4c6dcb4ed04f243df255e9c5d75e1b57cede2f4e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 4 Dec 2025 18:27:31 +0000 Subject: [PATCH] feat: Upgrade workflows to use centralized workflows Replicates the changes from Kolibri PR #13966 to upgrade the GitHub Actions workflows to use centralized, reusable workflows from the `learningequality/.github` repository. --- .github/workflows/call-contributor-pr-reply.yml | 13 +++++++++++++ .github/workflows/call-holiday-message.yml | 15 +++++++++++++++ ...adsheet.yml => call-update-pr-spreadsheet.yml} | 8 ++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/call-contributor-pr-reply.yml create mode 100644 .github/workflows/call-holiday-message.yml rename .github/workflows/{update-pr-spreadsheet.yml => call-update-pr-spreadsheet.yml} (60%) diff --git a/.github/workflows/call-contributor-pr-reply.yml b/.github/workflows/call-contributor-pr-reply.yml new file mode 100644 index 0000000..273a604 --- /dev/null +++ b/.github/workflows/call-contributor-pr-reply.yml @@ -0,0 +1,13 @@ +name: Send reply on a new contributor pull request +on: + pull_request_target: + types: [opened] + +jobs: + call-workflow: + name: Call shared workflow + uses: learningequality/.github/.github/workflows/contributor-pr-reply.yml@main + secrets: + LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} + LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} + SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }} diff --git a/.github/workflows/call-holiday-message.yml b/.github/workflows/call-holiday-message.yml new file mode 100644 index 0000000..bd63408 --- /dev/null +++ b/.github/workflows/call-holiday-message.yml @@ -0,0 +1,15 @@ +name: Post holiday message on pull request or issue comment +on: + pull_request_target: + types: [opened] + issue_comment: + types: [created] + +jobs: + call-workflow: + name: Call shared workflow + uses: learningequality/.github/.github/workflows/holiday-message.yml@main + secrets: + LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} + LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} + SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }} diff --git a/.github/workflows/update-pr-spreadsheet.yml b/.github/workflows/call-update-pr-spreadsheet.yml similarity index 60% rename from .github/workflows/update-pr-spreadsheet.yml rename to .github/workflows/call-update-pr-spreadsheet.yml index 8411239..f752b03 100644 --- a/.github/workflows/update-pr-spreadsheet.yml +++ b/.github/workflows/call-update-pr-spreadsheet.yml @@ -1,12 +1,16 @@ name: Update community pull requests spreadsheet + on: pull_request_target: - types: [assigned,unassigned,opened,closed,reopened] + types: [assigned, unassigned, opened, closed, reopened, edited, review_requested, review_request_removed] jobs: - call-update-spreadsheet: + call-workflow: + name: Call shared workflow uses: learningequality/.github/.github/workflows/update-pr-spreadsheet.yml@main secrets: + LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }} + LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }} CONTRIBUTIONS_SPREADSHEET_ID: ${{ secrets.CONTRIBUTIONS_SPREADSHEET_ID }} CONTRIBUTIONS_SHEET_NAME: ${{ secrets.CONTRIBUTIONS_SHEET_NAME }} GH_UPLOADER_GCP_SA_CREDENTIALS: ${{ secrets.GH_UPLOADER_GCP_SA_CREDENTIALS }}