From 0aef30fd76dc3202c8a64c73738f44986f394332 Mon Sep 17 00:00:00 2001 From: Michaela Robosova Date: Thu, 4 Dec 2025 19:06:20 +0100 Subject: [PATCH] Upgrade workflows to .github#35 A companion to https://github.com/learningequality/.github/pull/35 --- .github/workflows/call-contributor-pr-reply.yml | 12 ++++++++++++ .github/workflows/call-holiday-message.yml | 14 ++++++++++++++ ...eadsheet.yml => call-update-pr-spreadsheet.yml} | 8 +++++--- 3 files changed, 31 insertions(+), 3 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 00000000000..e8316e041b8 --- /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 00000000000..6ed898b88fb --- /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 8411239cd02..837a34e4a9b 100644 --- a/.github/workflows/update-pr-spreadsheet.yml +++ b/.github/workflows/call-update-pr-spreadsheet.yml @@ -1,12 +1,14 @@ 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 }}