-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from plebbit/development
Development
- Loading branch information
Showing
48 changed files
with
336 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,93 @@ | ||
# send notifications to telegram group on commits, releases, issues | ||
name: notifications | ||
# # send notifications to telegram group on commits, releases, issues | ||
# name: notifications | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
issues: | ||
types: [opened] | ||
# on: | ||
# pull_request: | ||
# branches: | ||
# - master | ||
# push: | ||
# branches: | ||
# - master | ||
# release: | ||
# types: [published] | ||
# issues: | ||
# types: [opened] | ||
|
||
jobs: | ||
push: | ||
if: ${{ github.event_name == 'push' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
commit: ${{ github.event.commits }} | ||
steps: | ||
# - name: debug | ||
# env: | ||
# DEBUG: ${{ toJSON(matrix.commit) }} | ||
# run: echo "$DEBUG" | ||
# jobs: | ||
# push: | ||
# if: ${{ github.event_name == 'push' }} | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# commit: ${{ github.event.commits }} | ||
# steps: | ||
# # - name: debug | ||
# # env: | ||
# # DEBUG: ${{ toJSON(matrix.commit) }} | ||
# # run: echo "$DEBUG" | ||
|
||
# write message to file | ||
- run: echo "<code>${{ matrix.commit.message }}</code>" >> message.txt | ||
- run: echo "" >> message.txt | ||
- run: echo "by <i>${{ matrix.commit.author.username }}</i>" >> message.txt | ||
- run: echo "${{ matrix.commit.url }}" >> message.txt | ||
- run: date -d "${{ matrix.commit.timestamp }}" +"%d/%m/%y at %H:%M" >> message.txt | ||
# # write message to file | ||
# - run: echo "<code>${{ matrix.commit.message }}</code>" >> message.txt | ||
# - run: echo "" >> message.txt | ||
# - run: echo "by <i>${{ matrix.commit.author.username }}</i>" >> message.txt | ||
# - run: echo "${{ matrix.commit.url }}" >> message.txt | ||
# - run: date -d "${{ matrix.commit.timestamp }}" +"%d/%m/%y at %H:%M" >> message.txt | ||
|
||
# send message, @plebbit telegram chat id is -1001665335693 | ||
- name: "telegram notification" | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: -1001665335693 | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
# commit links don't show anything useful in preview | ||
disable_web_page_preview: true | ||
format: html | ||
message_file: message.txt | ||
# # send message, @plebbit telegram chat id is -1001665335693 | ||
# - name: "telegram notification" | ||
# uses: appleboy/telegram-action@master | ||
# with: | ||
# to: -1001665335693 | ||
# token: ${{ secrets.TELEGRAM_TOKEN }} | ||
# # commit links don't show anything useful in preview | ||
# disable_web_page_preview: true | ||
# format: html | ||
# message_file: message.txt | ||
|
||
release: | ||
if: ${{ github.event_name == 'release' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# - name: debug | ||
# env: | ||
# DEBUG: ${{ toJSON(github) }} | ||
# run: echo "$DEBUG" | ||
# release: | ||
# if: ${{ github.event_name == 'release' }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # - name: debug | ||
# # env: | ||
# # DEBUG: ${{ toJSON(github) }} | ||
# # run: echo "$DEBUG" | ||
|
||
# write message to file | ||
- run: echo "<b>${{ github.event.repository.name }} ${{ github.event.release.name }}</b>" >> message.txt | ||
- run: echo "" >> message.txt | ||
- run: echo "${{ github.event.release.body }}" >> message.txt | ||
- run: echo "${{ github.event.release.html_url }}" >> message.txt | ||
# # write message to file | ||
# - run: echo "<b>${{ github.event.repository.name }} ${{ github.event.release.name }}</b>" >> message.txt | ||
# - run: echo "" >> message.txt | ||
# - run: echo "${{ github.event.release.body }}" >> message.txt | ||
# - run: echo "${{ github.event.release.html_url }}" >> message.txt | ||
|
||
# send message, @plebbit telegram chat id is -1001665335693 | ||
- name: "telegram notification" | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: -1001665335693 | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
message_file: message.txt | ||
# # send message, @plebbit telegram chat id is -1001665335693 | ||
# - name: "telegram notification" | ||
# uses: appleboy/telegram-action@master | ||
# with: | ||
# to: -1001665335693 | ||
# token: ${{ secrets.TELEGRAM_TOKEN }} | ||
# format: html | ||
# message_file: message.txt | ||
|
||
issue: | ||
if: ${{ github.event_name == 'issues' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# - name: debug | ||
# env: | ||
# DEBUG: ${{ toJSON(github) }} | ||
# run: echo "$DEBUG" | ||
# issue: | ||
# if: ${{ github.event_name == 'issues' }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # - name: debug | ||
# # env: | ||
# # DEBUG: ${{ toJSON(github) }} | ||
# # run: echo "$DEBUG" | ||
|
||
# write message to file | ||
- run: echo "<code>${{ github.event.issue.title }}</code>" >> message.txt | ||
- run: echo "" >> message.txt | ||
- run: echo "by <i>${{ github.event.issue.user.login }}</i>" >> message.txt | ||
- run: echo "${{ github.event.issue.html_url }}" >> message.txt | ||
# # write message to file | ||
# - run: echo "<code>${{ github.event.issue.title }}</code>" >> message.txt | ||
# - run: echo "" >> message.txt | ||
# - run: echo "by <i>${{ github.event.issue.user.login }}</i>" >> message.txt | ||
# - run: echo "${{ github.event.issue.html_url }}" >> message.txt | ||
|
||
# send message, @plebbit telegram chat id is -1001665335693 | ||
- name: "telegram notification" | ||
uses: appleboy/telegram-action@master | ||
with: | ||
to: -1001665335693 | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
message_file: message.txt | ||
# # send message, @plebbit telegram chat id is -1001665335693 | ||
# - name: "telegram notification" | ||
# uses: appleboy/telegram-action@master | ||
# with: | ||
# to: -1001665335693 | ||
# token: ${{ secrets.TELEGRAM_TOKEN }} | ||
# format: html | ||
# message_file: message.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.