File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update Tailwind
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 3 * * *'
6+ workflow_dispatch :
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ timeout-minutes : 10
12+ steps :
13+ - uses : actions/checkout@master
14+ - name : Update app/assets/stylesheets/tailwind.css
15+ run : |
16+ npx tailwindcss-cli@latest build -o app/assets/stylesheets/tailwind.css
17+ - name : Commit files
18+ run : |
19+ TAILWIND_CSS_VERSION=`npm view tailwindcss@latest version`
20+ git config --local user.email "github-actions@example.com"
21+ git config --local user.name "GitHub Actions"
22+ git add app/assets/stylesheets/tailwind.css
23+ git commit -am "[nodoc] Updating Tailwind CSS to $TAILWIND_CSS_VERSION" || echo "No changes to commit"
24+ - name : Push changes
25+ uses : ad-m/github-push-action@master
26+ with :
27+ github_token : ${{ secrets.GITHUB_TOKEN }}
28+ branch : ${{ github.ref }}
You can’t perform that action at this time.
0 commit comments