Skip to content

Fix "Update Tailwind" action #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/update-tailwind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@master
- name: Update app/assets/stylesheets/tailwind.css

- name: Update tailwind.css
run: |
npx tailwindcss-cli@latest build -o app/assets/stylesheets/tailwind.css
- name: Commit files
yarn upgrade tailwindcss
yarn build

- name: Commit changes
run: |
TAILWIND_CSS_VERSION=`npm view tailwindcss@latest version`
git config --local user.email "github-actions@example.com"
git config --local user.name "GitHub Actions"
git add app/assets/stylesheets/tailwind.css
git commit -am "[nodoc] Updating Tailwind CSS to $TAILWIND_CSS_VERSION" || echo "No changes to commit"
git commit -am "Update tailwind.css" || echo "No changes to commit"

- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down