From 5e3fd4ac06aa55924de36edc2e948765dc1d3f2e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 8 Nov 2023 19:17:41 +0200 Subject: [PATCH] update issue workflows --- .gitea/workflows/issues.yml | 24 ++++++++++++++++++++++++ .github/workflows/issues.yml | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/issues.yml diff --git a/.gitea/workflows/issues.yml b/.gitea/workflows/issues.yml new file mode 100644 index 0000000..d129833 --- /dev/null +++ b/.gitea/workflows/issues.yml @@ -0,0 +1,24 @@ +on: + issues: + types: [opened, edited, reopened] + + issue_comment: + types: [created, edited] + +jobs: + send_telegram_message: + name: send telegram message + runs-on: ubuntu-latest + steps: + - name: send telegram message + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + Gitea. Creating new issue + + Author: ${{ gitea.actor }} + Repository: ${{ gitea.repository }} + + See changes: https://gitea.com/${{ gitea.repository }}/issues/${{ gitea.event.issue.number }} \ No newline at end of file diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index 1164818..af46e5e 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -16,9 +16,9 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | + Github. Creating new issue + Author: ${{ github.actor }} Repository: ${{ github.repository }} - Event: ${{ github.event.name }} - Issue: ${{ github.event.issue.number }} See changes: https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }} \ No newline at end of file