forked from shaka-project/webdriver-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 908 Bytes
/
update-issues.yaml
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
# Install this in .github/workflows/ to automate issue maintenance.
name: Update Issues
on:
workflow_dispatch:
# Allows for manual triggering.
schedule:
# Run every 30 minutes
- cron: '*/30 * * * *'
jobs:
update-issues:
runs-on: ubuntu-latest
permissions:
# "Write" to Issues to add labels, milestones, comments, etc.
issues: write
# "Write" to Pull Requests for the same.
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
repository: shaka-project/shaka-github-tools
persist-credentials: false
- name: Update Issues
env:
# Use SHAKA_BOT_TOKEN if found, otherwise the default GITHUB_TOKEN.
GITHUB_TOKEN: ${{ secrets.SHAKA_BOT_TOKEN || secrets.GITHUB_TOKEN }}
run: |
cd update-issues
npm ci
node main.js