Skip to content

Build Branch

Build Branch #12

Workflow file for this run

name: Build Branch
on: workflow_dispatch
jobs:
build_all:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
path: app
- uses: actions/setup-node@master
with:
node-version: 19
- name: Install Node dependencies
run: |
cd app
npm install
- name: Build
env:
BRANCH_NAME: ${{ GITHUB_REF#refs/heads/ }}

Check failure on line 21 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Build Branch

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 21, Col: 22): Unexpected symbol: 'GITHUB_REF#refs/heads/'. Located at position 1 within expression: GITHUB_REF#refs/heads/
run: |
cd app
echo "testing GITHUB_REF itself: $GITHUB_REF"
echo "testing GITHUB_REF with details availability: ${GITHUB_REF#refs/heads/}"
echo "testing BRANCH_NAME variable: $BRANCH_NAME"
npm run build:js && npm run build:css
echo "executing ls out on the directory:"
ls out