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
2
2
3
3
env :
4
4
WORKFLOW_FILE : update-changesets.yml
5
- CHANGESETS_FILE : changesets
5
+ DB_FILE : db
6
6
RSS_URLS : |
7
7
https://unity.com/releases/editor/lts-releases.xml
8
8
https://unity.com/releases/editor/tech-and-preview-releases.xml
40
40
41
41
- name : 🛠️ Update changesets file
42
42
run : |
43
- touch "${{ env.CHANGESETS_FILE }}"
43
+ touch "${{ env.DB_FILE }}"
44
44
urls=(`echo "${{ env.RSS_URLS }}"`)
45
45
for url in "${urls[@]}"; do
46
46
# Find versions from RSS
@@ -49,15 +49,15 @@ jobs:
49
49
50
50
for version in "${versions[@]}"; do
51
51
# Already exists
52
- if grep -q "$version" "${{ env.CHANGESETS_FILE }}"; then
52
+ if grep -q "$version" "${{ env.DB_FILE }}"; then
53
53
continue
54
54
fi
55
55
56
56
# Get changeset for the Unity version
57
57
changeset_output=$(npx unity-changeset "$version" 2>/dev/null)
58
58
59
59
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
61
61
else
62
62
echo " Error: $version is not valid"
63
63
fi
You can’t perform that action at this time.
0 commit comments