Skip to content

Using Google Chat

Using Google Chat #400

name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '15.x'
- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
# Build Eleventy site
- name: Eleventy build
run: npm run build
# Notify on Google Chat!
- name: Google Chat Notification
uses: nakamuraos/google-chat-notifications@v3.4.0
with:
title: Eleventy build - simplyexplained.com
subtitle: ${{ github.event.head_commit.message }}
webhookUrl: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}
status: ${{ job.status }}
if: always()