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.
| 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 | 
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