-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcheck-workflow.yml
More file actions
34 lines (28 loc) · 835 Bytes
/
check-workflow.yml
File metadata and controls
34 lines (28 loc) · 835 Bytes
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
name: Check for Users to Demote
on:
schedule:
- cron: '0 * * * *' # Run once every hour.
workflow_dispatch:
permissions:
contents: write
issues: write
env:
# TODO: Change this to the organization(s) that you support.
ALLOWED_ORGS: org1,org2
jobs:
check:
name: Close Expired Issues
runs-on: ubuntu-latest
steps:
# Checkout the repository. This is required to access the issue form
# template and any custom validation logic.
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Check for Users to Demote
id: check-demote
uses: ActionsDesk/admin-support-issueops-actions/admin-support-cli@v2
with:
action: check_auto_demotion
admin_token: ${{ secrets.PAT }}
allowed_orgs: ${{ env.ALLOWED_ORGS }}