1- name : Auto Update TailwindCSS Version
1+ name : Auto Update TailwindCSS and Publish NuGet
22
33on :
44 schedule :
@@ -102,23 +102,6 @@ jobs:
102102 chmod +x ./DotnetDevKR.TailwindCSS/runtime/install.sh
103103 ./DotnetDevKR.TailwindCSS/runtime/install.sh ${{ env.TAILWINDCSS_VERSION }}
104104
105- - name : Commit changes
106- if : env.UPDATE_NEEDED == 'true'
107- run : |
108- git config --local user.email "github-actions[bot]@users.noreply.github.com"
109- git config --local user.name "github-actions[bot]"
110- git add ./DotnetDevKR.TailwindCSS/DotnetDevKR.TailwindCSS.csproj
111- git add ./DotnetDevKR.TailwindCSS/runtime/install.sh
112- git add ./DotnetDevKR.TailwindCSS/runtime/tailwindcss-*
113- git commit -m "chore: Update TailwindCSS to ${{ env.TAILWINDCSS_VERSION }} and bump version to ${{ env.NEW_VERSION }}"
114- git tag "v${{ env.NEW_LIB_VERSION }}"
115-
116- - name : Push changes and tags
117- if : env.UPDATE_NEEDED == 'true'
118- run : |
119- git push origin ${{ github.ref_name }}
120- git push origin "v${{ env.NEW_LIB_VERSION }}"
121-
122105 - name : Restore dependencies
123106 if : env.UPDATE_NEEDED == 'true'
124107 run : dotnet restore DotnetDevKR.TailwindCSS.sln
@@ -135,6 +118,22 @@ jobs:
135118 --output ./artifacts \
136119 /p:Version=${{ env.NEW_VERSION }}
137120
121+ - name : Commit changes
122+ if : env.UPDATE_NEEDED == 'true'
123+ run : |
124+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
125+ git config --local user.name "github-actions[bot]"
126+ git add ./DotnetDevKR.TailwindCSS/DotnetDevKR.TailwindCSS.csproj
127+ git add ./DotnetDevKR.TailwindCSS/runtime/install.sh
128+ git commit -m "chore: Update TailwindCSS to ${{ env.TAILWINDCSS_VERSION }} and bump version to ${{ env.NEW_VERSION }}"
129+ git tag "v${{ env.NEW_LIB_VERSION }}"
130+
131+ - name : Push changes and tags
132+ if : env.UPDATE_NEEDED == 'true'
133+ run : |
134+ git push origin ${{ github.ref_name }}
135+ git push origin "v${{ env.NEW_LIB_VERSION }}"
136+
138137 - name : Publish to NuGet.org
139138 if : env.UPDATE_NEEDED == 'true'
140139 run : |
0 commit comments