Skip to content

Latest commit

 

History

History
62 lines (53 loc) · 1.78 KB

README.Telegram.md

File metadata and controls

62 lines (53 loc) · 1.78 KB

Telegram screenshots-ci-action setting

Prerequisites

  1. Bot token
  2. GroupId or ChannelId

1. set repo secrets

Set TELE_CHAT_ID and TELE_BOT_TOKEN as repo secrets for security issue.

Follow doc to set secretes

secret2 secret1
secret3

2. set workflow yaml (config example)

env:
  TELE_CHAT_ID: ${{ secrets.TELE_CHAT_ID }}
  TELE_BOT_TOKEN: ${{ secrets.TELE_BOT_TOKEN }}

full example:

name: screenshots ci actions
on:
  push:
    branches:
    - master

jobs:
  screenshots:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: install puppeteer-headful
      uses: mujo-code/puppeteer-headful@master
      env:
        CI: 'true'
    - name: screenshots-ci-action
      uses: flameddd/screenshots-ci-action@master
      with:
        url: https://github.com
        devices: iPhone 6,iPhone 6 landscape
        noDesktop: true
      env:
        TELE_CHAT_ID: ${{ secrets.TELE_CHAT_ID }}
        TELE_BOT_TOKEN: ${{ secrets.TELE_BOT_TOKEN }}

telegram4
telegram3
telegram2
telegram1