From 663ee940c31827cee1c8a300f65bcf94a7944625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Feliks=20Pobiedzi=C5=84ski?= <38541925+FelonEkonom@users.noreply.github.com> Date: Tue, 17 Oct 2023 14:53:11 +0200 Subject: [PATCH] Add workflow closing newly opened issues (#92) --- .github/workflows/on_issue_opened.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/on_issue_opened.yaml diff --git a/.github/workflows/on_issue_opened.yaml b/.github/workflows/on_issue_opened.yaml new file mode 100644 index 0000000..beed601 --- /dev/null +++ b/.github/workflows/on_issue_opened.yaml @@ -0,0 +1,24 @@ +name: 'Close issue when opened' +on: + issues: + types: + - opened +jobs: + close: + runs-on: ubuntu-latest + steps: + - name: Checkout membrane_core + uses: actions/checkout@v3 + with: + repository: membraneframework/membrane_core + - name: Create label if it not exists + uses: ./.github/actions/create_label + with: + GITHUB_TOKEN: ${{ secrets.MEMBRANEFRAMEWORKADMIN_TOKEN }} + - name: Close issue + uses: ./.github/actions/close_issue + with: + GITHUB_TOKEN: ${{ secrets.MEMBRANEFRAMEWORKADMIN_TOKEN }} + ISSUE_URL: ${{ github.event.issue.html_url }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + REPOSITORY: ${{ github.repository }}