https://github.com/projectwallace/css-diff-action
Project Wallace GitHub Action to report CSS diffs to PR's
https://github.com/projectwallace/css-diff-action
Last synced: 11 months ago
JSON representation
Project Wallace GitHub Action to report CSS diffs to PR's
- Host: GitHub
- URL: https://github.com/projectwallace/css-diff-action
- Owner: projectwallace
- License: mit
- Created: 2020-03-24T21:36:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T23:09:29.000Z (over 2 years ago)
- Last Synced: 2025-07-13T15:37:32.036Z (12 months ago)
- Language: JavaScript
- Homepage: https://www.projectwallace.com
- Size: 987 KB
- Stars: 38
- Watchers: 4
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
# Project Wallace Diff Github Action
This GitHub actions posts your CSS to [projectwallace.com](https://www.projectwallace.com?ref=gh-diff-action), calculates the change between the current state of your project and your PR, and comments the diff in the PR.

## 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](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-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
```yaml
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
```