Skip to content

Add proper snackbars (from notisnack package) and major improvements #17

Add proper snackbars (from notisnack package) and major improvements

Add proper snackbars (from notisnack package) and major improvements #17

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Build
run: |
npm install
npm run build
- name: Get commit short hash
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Post request
if: ${{ secrets.WEBHOOK_URL != '' && secrets.WEBHOOK_URL != null }}

Check failure on line 31 in .github/workflows/deploy-master.yml

View workflow run for this annotation

GitHub Actions / Build and Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-master.yml (Line: 31, Col: 11): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.WEBHOOK_URL != '' && secrets.WEBHOOK_URL != null
run: |
curl -s -X POST -k ${{ secrets.WEBHOOK_URL }}?TAG=${{ steps.vars.outputs.sha_short }} \
-H 'sudo-token: ${{ secrets.API_SUDO_TOKEN }}'