Skip to content

Commit

Permalink
deps: Upgrade actions/checkout and Nu version
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Jun 10, 2024
1 parent 8fcfa3f commit 4650577
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Setup MoonBit@${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected].3
uses: actions/[email protected].6

- name: Setup Moonbit
uses: hustcer/setup-moonbit@develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Setup MoonBit@${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected].3
uses: actions/[email protected].6

- name: Setup Moonbit
uses: hustcer/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Setup MoonBit@${{ matrix.os }}
steps:
- name: Checkout
uses: actions/[email protected].3
uses: actions/[email protected].6

- name: Setup Moonbit
uses: hustcer/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It's quite simple to use `hustcer/setup-moonbit`, just follow the example below:
```yaml
steps:
- name: Checkout
uses: actions/[email protected].3
uses: actions/[email protected].6

- name: Setup Moonbit
uses: hustcer/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
```yaml
steps:
- name: Checkout
uses: actions/[email protected].3
uses: actions/[email protected].6

- name: Setup Moonbit
uses: hustcer/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ runs:
using: 'composite'
steps:
- name: Setup Nu
uses: hustcer/setup-nu@v3.10
uses: hustcer/setup-nu@v3
with:
version: '0.93.0'
version: '0.94.2'

- name: Setup MoonBit
shell: nu {0}
Expand Down
14 changes: 7 additions & 7 deletions nu/common.nu
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# If current host is Windows
export def windows? [] {
# Windows / Darwin / Linux
(sys).host.name == 'Windows'
(sys host | get name) == 'Windows'
}

# Check if some command available in current shell
Expand Down Expand Up @@ -73,14 +73,14 @@ export def git-check [
cd $dest
let isGitInstalled = (which git | length) > 0
if (not $isGitInstalled) {
echo $'You should (ansi r)INSTALL git(ansi reset) first to run this command, bye...'
print $'You should (ansi r)INSTALL git(ansi reset) first to run this command, bye...'
exit 2
}
# If we don't need repo check just quit now
if ($check_repo != 0) {
let checkRepo = (do -i { git rev-parse --is-inside-work-tree } | complete)
if not ($checkRepo.stdout =~ 'true') {
echo $'Current directory is (ansi r)NOT(ansi reset) a git repo, bye...(char nl)'
print $'Current directory is (ansi r)NOT(ansi reset) a git repo, bye...(char nl)'
exit 5
}
}
Expand All @@ -99,9 +99,9 @@ export def log [
name: string,
var: any,
] {
echo $'(ansi g)(build-line 18)> Debug Begin: ($name) <(build-line 18)(ansi reset)'
echo $var
echo $'(ansi g)(build-line 20)> Debug End <(build-line 20)(char nl)(ansi reset)'
print $'(ansi g)(build-line 18)> Debug Begin: ($name) <(build-line 18)(ansi reset)'
print $var
print $'(ansi g)(build-line 20)> Debug End <(build-line 20)(char nl)(ansi reset)'
}

export def hr-line [
Expand All @@ -110,6 +110,6 @@ export def hr-line [
--blank-line(-b),
--with-arrow(-a),
] {
echo $'(ansi $color)(build-line $width)(if $with_arrow {'>'})(ansi reset)'
print $'(ansi $color)(build-line $width)(if $with_arrow {'>'})(ansi reset)'
if $blank_line { char nl }
}

0 comments on commit 4650577

Please sign in to comment.