Skip to content

try branches ignore

try branches ignore #3

Workflow file for this run

name: Test Build
on:
push:
branches-ignore:
- master
- gh-pages
jobs:
build-deploy-gh-pages:
name: Build / Deploy to gh-pages and Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: 18
- name: npm install
run: |
npm install
- name: npm build frontend
env:
NODE_OPTIONS: --openssl-legacy-provider
run: |
npm run build
env:

Check failure on line 29 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / Test Build

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 29, Col: 9): 'env' is already defined
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}