https://github.com/projectwallace/push-css-action
Project Wallace GitHub Action to push new CSS to projectwallace.com automatically
https://github.com/projectwallace/push-css-action
Last synced: 10 months ago
JSON representation
Project Wallace GitHub Action to push new CSS to projectwallace.com automatically
- Host: GitHub
- URL: https://github.com/projectwallace/push-css-action
- Owner: projectwallace
- License: mit
- Created: 2020-04-18T19:46:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T20:56:53.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T00:59:12.906Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://www.projectwallace.com
- Size: 82 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
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), and auto-updates your project's latest CSS Analytics.

## Usage
### Inputs
| 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](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. | |
### Example
`.github/workflows/auto-push-css.yaml`
```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
```