From 0b994c4e207fc322ad24a9887c491052072ce118 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Tue, 4 Jan 2022 07:51:03 +0100 Subject: [PATCH] ci: add closed references notificier workflow (#1467) This workflow will check for issue links in the code that has been closed upstream and can be dealt with. --- .github/workflows/closed-references.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/closed-references.yml diff --git a/.github/workflows/closed-references.yml b/.github/workflows/closed-references.yml new file mode 100644 index 000000000..126c6b7cf --- /dev/null +++ b/.github/workflows/closed-references.yml @@ -0,0 +1,29 @@ +name: Closed Reference Notifier + +on: + schedule: + - cron: "0 0 * * *" + workflow_dispatch: + inputs: + issueLimit: + description: Max. number of issues to create + required: true + default: "5" + +jobs: + find_closed_references: + if: github.repository_owner == 'LibreTime' + name: Find closed references + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-node@v2 + with: + node-version: "16" + + - uses: ory/closed-reference-notifier@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + issueLimit: ${{ github.event.inputs.issueLimit || '5' }}