Skip to content

Added workflow

Added workflow #1

Workflow file for this run

on:
push:
branches:
- dev
jobs:
build_css:
runs-on: ubuntu-latest
steps:
- name: Checkout source Git branch
uses: actions/checkout@v2
with:
ref: dev
fetch-depth: 10
submodules: true
- name: Make destination directory for compiled CSS
run: mkdir -vp /tmp/DjangoUI-Enhancer/assets/css
- name: Compile CSS from SASS files
uses: gha-utilities/sass-build@v0.5.1
with:

Check failure on line 24 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 24, Col: 14): Unexpected value '' .github/workflows/build.yml (Line: 25, Col: 9): Unexpected value 'source'
source: |
sass/enhancer-base.sass
sass/enhancer-change-list.sass
sass/enhancer-dark-mode.sass
sass/enhancer-side-bar.sass
- name: Checkout destination Git branch
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 1
- name: Move compiled CSS to path within pr-pages branch
run: mv /tmp/DjangoUI-Enhancer/assets/css/
- name: Add and Commit changes to pr-pages branch
run: |
git config --local user.email 'action@github.com'
git config --local user.name 'GitHub Action'
git add assets/css/*
git commit -m 'Updates compiled CSS files'
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
- name: Initialize Pull Request
uses: gha-utilities/init-pull-request@v0.0.4
with:
pull_request_token: ${{ secrets.GITHUB_TOKEN }}
head: main
base: dev
title: 'Updates site files from latest Actions build'