From f68108b1f9d22cc8d1d27c8692d08403539aeb5b Mon Sep 17 00:00:00 2001 From: Shaka Bot <13107131+shaka-bot@users.noreply.github.com> Date: Thu, 24 Feb 2022 14:38:50 -0800 Subject: [PATCH] chore: Sync common workflows (#1034) This is an automated sync of common workflows for this organization. The upstream source is: https://github.com/joeyparrish/shaka-github-tools/commit/aa5e38eb86e581249e1022a82d148415e3e055e4 Co-authored-by: Shaka Bot --- .github/workflows/update-issues.yaml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/update-issues.yaml diff --git a/.github/workflows/update-issues.yaml b/.github/workflows/update-issues.yaml new file mode 100644 index 0000000000..0b8238d3f7 --- /dev/null +++ b/.github/workflows/update-issues.yaml @@ -0,0 +1,29 @@ +# 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 + +jobs: + update-issues: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: joeyparrish/shaka-github-tools + + - name: Update Issues + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cd update-issues + npm ci + node main.js