forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.59 KB
/
inactive_issue_checker.yml
File metadata and controls
44 lines (38 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Check Inactive Issues
on:
schedule:
# Each midnight.
- cron: '0 0 * * *'
# GitHub doesn't provide assurance that the scheduled jobs will run on time
# (see https://github.community/t/no-assurance-on-scheduled-jobs/133753).
# So, we add the workflow_dispatch event here to allow triggering this
# workflow manually if needed.
workflow_dispatch:
permissions: read-all
jobs:
check-inactive-issues:
name: Check Inactive Issues
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Merge develop branch into the current branch
uses: ./.github/actions/merge-develop-and-set-up-dependencies
- name: Generate a JWT token for github app
id: generate_jwt_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.OPPIA_GITHUB_APP_ID }}
private-key: ${{ secrets.OPPIA_GITHUB_APP_PRIVATE_KEY }}
- name: Check inactive issues
env:
GITHUB_TOKEN: ${{ steps.generate_jwt_token.outputs.token }}
DEASSIGN_INACTIVE_CONTRIBUTORS: ${{ secrets.DEASSIGN_INACTIVE_CONTRIBUTORS }}
run: |
python -m scripts.inactive_issue_checker
- name: Report failure if failed on oppia/oppia develop branch
if: ${{ failure() && github.event_name == 'push' && github.repository == 'oppia/oppia' && github.ref == 'refs/heads/develop' }}
uses: ./.github/actions/send-webhook-notification
with:
message: "Inactive issue check failed on the upstream develop branch."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}