Merge pull request #67 from joncrangle/proxy_v2/playground #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Tailwind CSS | |
on: | |
push: | |
paths: | |
- "handlers/form.html" | |
- "handlers/playground.html" | |
- "proxychain/responsemodifiers/vendor/generate_readable_outline.html" | |
workflow_dispatch: | |
jobs: | |
tailwindbuilder: | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- | |
name: Build Tailwind CSS | |
run: pnpm build | |
- | |
name: Commit generated stylesheet for handlers/styles.css | |
run: | | |
if git diff --quiet handlers/styles.css; then | |
echo "No changes to commit." | |
exit 0 | |
else | |
echo "Changes detected, committing..." | |
git config --global user.name "Github action" | |
git config --global user.email "[email protected]" | |
git add handlers | |
git add proxychain/responsemodifiers/vendor/ | |
git commit -m "Generated stylesheet" | |
git push | |
fi |