Skip to content

Commit 3db1fa9

Browse files
committed
chore: update workflow
1 parent 743d80a commit 3db1fa9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update-changesets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: update-changesets
22

33
env:
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
@@ -40,7 +40,7 @@ jobs:
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

0 commit comments

Comments
 (0)