MaximeDan is pushing #287
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: Check build when pushing | |
run-name: ${{ github.actor }} is pushing | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Notify Discord on failure | |
if: failure() | |
uses: containrrr/shoutrrr-action@v1 | |
with: | |
url: ${{ secrets.NOTIFICATION_URL }} | |
title: "Build failed for ${{ github.actor }}" | |
message: | | |
Build failed | |
Commit message: ${{ github.event.head_commit.message }} | |
Commit SHA: ${{ github.sha }} |