new avatar #15
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
name: Линтер и Телеграм | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, reopened] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Запуск CSS линтера | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send telegram message on push | |
uses: appleboy/telegram-action@master | |
with: | |
to: ${{ secrets.TG_ID }} | |
token: ${{ secrets.TG_TOKEN }} | |
message: | | |
${{ github.actor }} создал новый коммит: ${{ github.event.commits[0].message }} | |
Ссылка на коммит: https://github.com/${{ github.repository }}/commit/${{github.sha}} | |
Репозиторий: https://github.com/${{ github.repository }} | |
CI/CD github actions: https://github.com/${{ github.repository }}/actions | |
https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Пройти проверки CSS линтера | |
uses: actions-hub/stylelint@master | |
env: | |
PATTERN: "**/*.css" |