/
githubmirror
/
oppia
Обзор
Документация
Войти
/
githubmirror
/
oppia
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
.github/workflows/inactive_issue_checker.yml
44 строки
2 KB
Ashutosh Kasudhan
Fix #22210: This PR is just an extension over existing issue#21294, just to take use of Github app in place of PAT. (#22249)
08 апр 2025, 19:51
Не верифицирован
08 апр 2025, 19:51
e731195
Код
Авторство
О чём код?
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 }}