From 35f53096193b2c9662763f7595d470a04440b065 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:13:19 +0000 Subject: [PATCH] Refactor: Use shared GitHub Action workflows This change refactors the GitHub Actions workflows to use shared, reusable workflows from the `learningequality/.github` repository. This promotes consistency and maintainability across repositories. The following changes were made: - Created `.github/workflows/call-contributor-pr-reply.yml` - Created `.github/workflows/call-holiday-message.yml` - Renamed `.github/workflows/update-pr-spreadsheet.yml` to `.github/workflows/call-update-pr-spreadsheet.yml` and updated its content. --- .github/workflows/call-contributor-pr-reply.yml | 12 ++++++++++++ .github/workflows/call-holiday-message.yml | 14 ++++++++++++++ ...eadsheet.yml => call-update-pr-spreadsheet.yml} | 7 +++++-- 3 files changed, 31 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 0000000000..e8316e041b --- /dev/null +++ b/.github/workflows/call-contributor-pr-reply.yml @@ -0,0 +1,12 @@ +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 0000000000..6ed898b88f --- /dev/null +++ b/.github/workflows/call-holiday-message.yml @@ -0,0 +1,14 @@ +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 8411239cd0..35464d6b02 100644 --- a/.github/workflows/update-pr-spreadsheet.yml +++ b/.github/workflows/call-update-pr-spreadsheet.yml @@ -1,12 +1,15 @@ 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 }}