Skip to content

Project Wallace GitHub Action to report CSS diffs to PR's

License

Notifications You must be signed in to change notification settings

projectwallace/css-diff-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Wallace Diff Github Action

This GitHub actions posts your CSS to projectwallace.com, calculates the change between the current state of your project and your PR, and comments the diff in the PR.

Example comment

Usage

Inputs

Name Required Example Description
github-token required github-token: ${{ secrets.GITHUB_TOKEN }} This Action uses this token to post a comment with the diff.
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.
post-pr-comment optional true Whether this action should post a comment to the PR with changes

Example

name: CSS Workflow

on:
  pull_request: # only run this action on pull requests
    branches: [master] # and only to the master branch

jobs:
  cssDiff:
    runs-on: ubuntu-latest

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