projectwallace / css-diff-action

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

Home Page:https://www.projectwallace.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://www.projectwallace.com

License:MIT License


Languages

Language:JavaScript 98.9%Language:CSS 1.1%