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