Skip to content

Commit fce4a0a

Browse files
authored
Fix indentation and update revision handling
1 parent 38be892 commit fce4a0a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/tailwindcss-auto-update.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "No version found in NuGet. Using default."
5252
LIB_VERSION="0.0.0.0"
5353
CURRENT_TAILWIND_VERSION="0.0.0"
54-
CURRENT_REVISION="0"
54+
CURRENT_REVISION="1"
5555
else
5656
echo "Latest NuGet library version: $LIB_VERSION"
5757
@@ -76,7 +76,7 @@ jobs:
7676
CURRENT_TAILWIND_VERSION="0.0.0"
7777
fi
7878
fi
79-
CURRENT_REVISION="0"
79+
CURRENT_REVISION="1"
8080
fi
8181
fi
8282
@@ -89,7 +89,7 @@ jobs:
8989
echo "Package not found on NuGet. This might be the first publish."
9090
echo "lib_version=0.0.0.0" >> $GITHUB_OUTPUT
9191
echo "current_tailwind_version=0.0.0" >> $GITHUB_OUTPUT
92-
echo "current_revision=0" >> $GITHUB_OUTPUT
92+
echo "current_revision=1" >> $GITHUB_OUTPUT
9393
fi
9494
9595
- name: Check if update is needed
@@ -103,9 +103,9 @@ jobs:
103103
echo "Update needed: $CURRENT_TAILWIND_VERSION -> $TAILWINDCSS_VERSION_CLEAN"
104104
echo "update_needed=true" >> $GITHUB_OUTPUT
105105
106-
# New TailwindCSS version, reset revision to 0
106+
# New TailwindCSS version, reset revision to 1
107107
# Version format: {TailwindMajor}.{TailwindMinor}.{TailwindPatch}.{Revision}
108-
NEW_REVISION="0"
108+
NEW_REVISION="1"
109109
NEW_LIB_VERSION="$TAILWINDCSS_VERSION_CLEAN.$NEW_REVISION"
110110
111111
echo "New library version: $NEW_LIB_VERSION"
@@ -211,3 +211,4 @@ jobs:
211211
env:
212212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213213

214+

0 commit comments

Comments
 (0)