Skip to content

Commit

Permalink
fix getting x-ui settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdikhody committed Oct 8, 2024
1 parent 61046dc commit cfda162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
run: |
output=$(x-ui settings)
echo "$output"
webBasePath=$(echo "$output" | grep -oP 'webBasePath: \K\S+')
sed -i "s|const webBasePath = \".*\";|const webBasePath = \"$webBasePath\";|g" ./tests/utils/api.ts
webBasePath=$(echo "$output" | grep -oP 'webBasePath: \K\S+' | sed 's|^/||;s|/$||')
sed -i "s|const webBasePath = \".*\";|const webBasePath = \"$webBasePath\";|g" tests/utils/api.ts
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down

0 comments on commit cfda162

Please sign in to comment.