fixing workflow in dev #12
Workflow file for this run
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
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/[email protected] | |
with: | |
source: | | |
light/source/sass/enhancer-base.sass | |
light/source/sass/enhancer-change-list.sass | |
light/source/sass/enhancer-dark-mode.sass | |
light/source/sass/enhancer-side-bar.sass | |
destination: | | |
/tmp/DjangoUI-Enhancer/assets/css/enhancer-base.css | |
/tmp/DjangoUI-Enhancer/assets/css/enhancer-change-list.css | |
/tmp/DjangoUI-Enhancer/assets/css/enhancer-dark-mode.css | |
/tmp/DjangoUI-Enhancer/assets/css/enhancer-side-bar.css | |
- name: Move compiled CSS to path within main branch | |
run: mv /tmp/DjangoUI-Enhancer/assets/css light/assets/css | |
- name: Add and Commit changes to main branch | |
run: | | |
git config --local user.email '[email protected]' | |
git config --local user.name 'GitHub Action' | |
git add light/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: dev | |
- name: Initialize Pull Request | |
uses: gha-utilities/[email protected] | |
with: | |
pull_request_token: ${{ secrets.GITHUB_TOKEN }} | |
head: main | |
base: dev | |
title: "Updates site files from latest Actions build" |