Files
shaka-player/.github/workflows/update-issues.yaml
T
Shaka Bot 3d742fe160 chore: Sync common workflows (#7776)
This is an automated sync of common workflows for this organization.
The upstream source is:

https://github.com/shaka-project/shaka-github-tools/commit/be928d30615b0fed458e89efe538f75360557b0b

Co-authored-by: Shaka Bot <shaka-bot@users.noreply.github.com>
2024-12-18 11:42:41 +01:00

36 lines
908 B
YAML

# 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