Skip to content

Commit

Permalink
fix: update lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Nov 5, 2024
1 parent 7bd7d2f commit 9b16785
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/update-changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ name: update-changesets

env:
WORKFLOW_FILE: update-changesets.yml
RSS_URLS: |
https://unity.com/releases/editor/lts-releases.xml
https://unity.com/releases/editor/tech-and-preview-releases.xml
https://unity.com/releases/editor/beta-releases.xml
https://unity.com/releases/editor/alpha-releases.xml
REGEX_UNITY_VERSION: '[0-9]{4,}\.[0-9]{1,}\.[0-9]{1,}(a|b|f|rc|p)[0-9]{1,}'

on:
issue_comment:
Expand All @@ -28,6 +22,7 @@ jobs:
with:
fetch-depth: 0
ref: gh_pages

- name: 🔍 Check other workflows
run: |
# Get in-progress or queued workflows.
Expand All @@ -38,7 +33,7 @@ jobs:
[ "$RESULT" = "false" ] && echo "::error::Other '${{ env.WORKFLOW_FILE }}' workflows are in progress." && exit 1 || :
- name: 🛠️ Update changesets file
run: npx unity-changeset list --all > db
run: npx unity-changeset list --all --all-lifecycles > db

- name: Commit & Push changes
uses: actions-js/push@master
Expand Down
6 changes: 4 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
{
"request": "launch",
"name": "list --versions",
"name": "list --versions --all --all-lifecycles",
"type": "node",
"program": "${workspaceFolder}/src/cli.ts",
"cwd": "${workspaceFolder}",
Expand All @@ -39,7 +39,9 @@
],
"args": [
"list",
"--versions"
"--versions",
"--all",
"--all-lifecycles"
],
"attachSimplePort": 9229
},
Expand Down
2 changes: 1 addition & 1 deletion src/unityChangeset.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const REGEXP_HUB_LINK = /^unityhub:\/\/(\d{4}\.\d+\.\d+(a|b|f)\d+)\/(\w{12})$/;
const REGEXP_HUB_LINK = /^unityhub:\/\/(\d{4}\.\d+\.\d+(a|b|f|p)\d+)\/(\w{12})$/;
const REGEXP_UNITY = /^(\d+)\.(\d+)\.(\d+)([a-zA-Z]+)(\d+)/;
const REGEXP_UNITY_NUM = /^(\d+)\.?(\d+)?\.?(\d+)?([a-zA-Z]+)?(\d+)?/;

Expand Down

0 comments on commit 9b16785

Please sign in to comment.