2022-02-24 22:38:50 +00:00
|
|
|
# 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 * * * *'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
issues: write
|
2023-07-24 21:58:45 +00:00
|
|
|
pull-requests: write
|
2022-02-24 22:38:50 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-issues:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-10-27 18:20:43 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-02-24 22:38:50 +00:00
|
|
|
with:
|
2022-03-01 05:14:32 +00:00
|
|
|
repository: shaka-project/shaka-github-tools
|
2022-02-24 22:38:50 +00:00
|
|
|
|
|
|
|
- name: Update Issues
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
cd update-issues
|
|
|
|
npm ci
|
|
|
|
node main.js
|