From 26a7d5a3f7f017fef49c13f31683dd17365d7eaa Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 9 Oct 2024 18:05:12 +0100 Subject: [PATCH] ci: Issue label triggers --- .github/workflows/issue-label-triggers.yml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/issue-label-triggers.yml diff --git a/.github/workflows/issue-label-triggers.yml b/.github/workflows/issue-label-triggers.yml new file mode 100644 index 00000000..feaffeb2 --- /dev/null +++ b/.github/workflows/issue-label-triggers.yml @@ -0,0 +1,26 @@ +--- +name: Issue Label Triggers +on: + issues: + types: + - labeled + +jobs: + closed-public-website: + if: github.event.label.name == 'closed-public-website' + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Add comment + run: gh issue comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + BODY: > + This issue concerns the public website, which is not open source and is not part of this repository. + + If you have a question or concern about the content of the public website, please contact Nevo David. + + If you are looking to contribute to the open source Postiz project code, this is the correct repository, and we welcome your contributions in a new GitHub issue.