Skip to content

Project Wallace GitHub Action to push new CSS to projectwallace.com automatically

License

Notifications You must be signed in to change notification settings

projectwallace/push-css-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Wallace Diff Github Action

This GitHub actions posts your CSS to projectwallace.com, and auto-updates your project's latest CSS Analytics.

null

Usage

Inputs

Name Required Example Description
project-wallace-token required project-wallace-token: ${{ secrets.PROJECT_WALLACE_TOKEN }} The webhook token for your project on projectwallace.com. You can find this token in the project settings. You must add this token to your repository secrets first!
css-path required css-path: ./build/style.css Path to the CSS file that should be analyzed and compared to the data on projectwallace.com.

Example

.github/workflows/auto-push-css.yaml

name: Auto-update CSS at projectwallace.com

on:
  push:
    branches: [master] # only run this action when the master branch is updated

jobs:
  cssDiff:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - name: Project Wallace Diff
        uses: projectwallace/push-css-action@master
        with:
          project-wallace-token: ${{ secrets.PROJECT_WALLACE_TOKEN }}
          css-path: ./build/style.css