Fix release and nightly build workflow (#11146)

Fix release and nightly build workflow:
https://github.com/nushell/nightly/issues/15
I think the `mv` command in v0.87.1 still has some bugs, when downgrade
to v0.86 everything works as expected
This commit is contained in:
Justin Ma 2023-11-24 09:10:39 +08:00 committed by GitHub
parent c2a46070aa
commit 95ac436d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 13 deletions

View File

@ -39,7 +39,7 @@ jobs:
uses: hustcer/setup-nu@v3.8
if: github.repository == 'nushell/nightly'
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -143,7 +143,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -257,7 +257,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -323,7 +323,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -160,13 +160,7 @@ if $os in [$USE_UBUNTU, 'macos-latest'] {
let archive = $'($dist)/($dest).tar.gz'
mkdir $dest
$files | each {|it|
if not ($it | path exists) {
print $'(ansi r)($it) not exists, abort...(ansi reset)'
exit 1
}
mv $it $dest
} | ignore
$files | each {|it| mv $it $dest } | ignore
print $'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls $dest

View File

@ -87,7 +87,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -178,7 +178,7 @@ jobs:
- name: Setup Nushell
uses: hustcer/setup-nu@v3.8
with:
version: 0.87.1
version: 0.86.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}