File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: update-changesets
22
33env :
44 WORKFLOW_FILE : update-changesets.yml
5- CHANGESETS_FILE : changesets
5+ DB_FILE : db
66 RSS_URLS : |
77 https://unity.com/releases/editor/lts-releases.xml
88 https://unity.com/releases/editor/tech-and-preview-releases.xml
4040
4141 - name : 🛠️ Update changesets file
4242 run : |
43- touch "${{ env.CHANGESETS_FILE }}"
43+ touch "${{ env.DB_FILE }}"
4444 urls=(`echo "${{ env.RSS_URLS }}"`)
4545 for url in "${urls[@]}"; do
4646 # Find versions from RSS
@@ -49,15 +49,15 @@ jobs:
4949
5050 for version in "${versions[@]}"; do
5151 # Already exists
52- if grep -q "$version" "${{ env.CHANGESETS_FILE }}"; then
52+ if grep -q "$version" "${{ env.DB_FILE }}"; then
5353 continue
5454 fi
5555
5656 # Get changeset for the Unity version
5757 changeset_output=$(npx unity-changeset "$version" 2>/dev/null)
5858
5959 if [ $? -eq 0 ]; then
60- echo -e "$version\t$changeset_output" | tee -a "${{ env.CHANGESETS_FILE }}" $GITHUB_STEP_SUMMARY
60+ echo -e "$version\t$changeset_output" | tee -a "${{ env.DB_FILE }}" $GITHUB_STEP_SUMMARY
6161 else
6262 echo " Error: $version is not valid"
6363 fi
You can’t perform that action at this time.
0 commit comments