Skip to content

Commit 08fa200

Browse files
authored
Merge pull request #353 from rtibblesbot/issue-352-62b42e
Migrate to the shared automation.yml entry point
2 parents be976e7 + d601092 commit 08fa200

2 files changed

Lines changed: 52 additions & 11 deletions

File tree

‎.github/workflows/automation.yml‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This file is generated by scripts/generate-automation.js from automation-registry.yml.
2+
# Do not edit it by hand - edit the registry and run:
3+
# node scripts/generate-automation.js
4+
#
5+
# Caller template: copy this file to .github/workflows/automation.yml in a consumer repo.
6+
# No edits are needed - the on: block is the exhaustive union of every enabled automation.
7+
8+
name: Automation
9+
on:
10+
pull_request_target:
11+
types:
12+
- review_requested
13+
- labeled
14+
- opened
15+
- assigned
16+
- unassigned
17+
- closed
18+
- reopened
19+
- edited
20+
- review_request_removed
21+
issue_comment:
22+
types:
23+
- created
24+
issues:
25+
types:
26+
- opened
27+
- reopened
28+
- labeled
29+
- unlabeled
30+
- assigned
31+
- unassigned
32+
pull_request_review_comment:
33+
types:
34+
- created
35+
schedule:
36+
- cron: 1 0 * * 1
37+
workflow_dispatch: {}
38+
permissions:
39+
contents: write
40+
pull-requests: write
41+
jobs:
42+
automation:
43+
name: Run automations
44+
uses: learningequality/.github/.github/workflows/automation.yml@main
45+
secrets:
46+
CONTRIBUTIONS_SHEET_NAME: ${{ secrets.CONTRIBUTIONS_SHEET_NAME }}
47+
CONTRIBUTIONS_SPREADSHEET_ID: ${{ secrets.CONTRIBUTIONS_SPREADSHEET_ID }}
48+
GH_UPLOADER_GCP_SA_CREDENTIALS: ${{ secrets.GH_UPLOADER_GCP_SA_CREDENTIALS }}
49+
LE_BOT_APP_ID: ${{ secrets.LE_BOT_APP_ID }}
50+
LE_BOT_PRIVATE_KEY: ${{ secrets.LE_BOT_PRIVATE_KEY }}
51+
SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL: ${{ secrets.SLACK_COMMUNITY_NOTIFICATIONS_WEBHOOK_URL }}
52+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

‎.github/workflows/call-pull-request-target.yml‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)