This GitHub actions posts your CSS to projectwallace.com, and auto-updates your project's latest CSS Analytics.
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. |
.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