Skip to content

Commit a7c8231

Browse files
committed
Update GitHub Actions
1 parent 03df9d4 commit a7c8231

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,31 @@ jobs:
1919
matrix:
2020
os: [ubuntu-latest, windows-latest]
2121
steps:
22-
- uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
22+
- uses: actions/checkout@v3
2323
with:
2424
fetch-depth: 0
2525

26-
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
26+
- uses: actions-rs/toolchain@v1
2727
if: ${{ matrix.os == 'windows-latest' }}
2828
with:
2929
toolchain: stable
3030
components: rustfmt, clippy
3131
profile: minimal
3232
override: true
33-
- uses: cachix/install-nix-action@d56f3ce9be45c562799280e8a561fbbe8f36de44 # v16
33+
- uses: cachix/install-nix-action@v20
3434
if: ${{ matrix.os != 'windows-latest' }}
3535
with:
3636
nix_path: nixpkgs=channel:nixos-unstable
37-
- uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12
37+
- uses: cachix/cachix-action@v12
3838
if: ${{ matrix.os != 'windows-latest' && env.CACHIX_AUTH_TOKEN != '' }}
3939
with:
4040
authToken: ${{ env.CACHIX_AUTH_TOKEN }}
4141
name: zoxide
4242

4343
- name: Setup cache
44-
uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
44+
uses: Swatinem/rust-cache@v2
4545
with:
46-
key: ${{ matrix.target }}
46+
key: ${{ matrix.os }}
4747

4848
- run: cargo xtask ci
4949
if: ${{ matrix.os == 'windows-latest' }}

.github/workflows/no-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: github.repository == 'ajeetdsouza/zoxide'
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb # v0.5.0
14+
- uses: lee-dohm/[email protected]
1515
with:
1616
token: ${{ github.token }}
1717
daysUntilClose: 30

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,46 +39,46 @@ jobs:
3939
target: aarch64-pc-windows-msvc
4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@dc323e67f16fb5f7663d20ff7941f27f5809e9b6 # v2.6.0
42+
uses: actions/checkout@v3
4343
with:
4444
fetch-depth: 0
4545

4646
- name: Get version
4747
id: get_version
48-
uses: SebRollen/toml-action@2bd04b06a3ebc3e6a3eb6060de115710cad16cd6 # v1.0.2
48+
uses: SebRollen/[email protected]
4949
with:
5050
file: Cargo.toml
5151
field: package.version
5252

5353
- name: Install Rust
54-
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
54+
uses: actions-rs/toolchain@v1
5555
with:
5656
toolchain: stable
5757
profile: minimal
5858
override: true
5959
target: ${{ matrix.target }}
6060

6161
- name: Setup cache
62-
uses: Swatinem/rust-cache@81d053bdb0871dcd3f10763c8cc60d0adc41762b # v1
62+
uses: Swatinem/rust-cache@v1.0.2
6363
with:
6464
key: ${{ matrix.target }}
6565

6666
- name: Build binary
67-
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
67+
uses: actions-rs/cargo@v1
6868
with:
6969
command: build
7070
args: --release --locked --target=${{ matrix.target }} --color=always --verbose
7171
use-cross: ${{ runner.os == 'Linux' }}
7272

7373
- name: Install cargo-deb
7474
if: ${{ matrix.deb == true }}
75-
uses: actions-rs/install@9da1d2adcfe5e7c16992e8242ca33a56b6d9b101 # v0.1.2
75+
uses: actions-rs/[email protected]
7676
with:
7777
crate: cargo-deb
7878

7979
- name: Build deb
8080
if: ${{ matrix.deb == true }}
81-
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
81+
uses: actions-rs/cargo@v1
8282
with:
8383
command: deb
8484
args: --no-build --no-strip --output=. --target=${{ matrix.target }}
@@ -103,7 +103,7 @@ jobs:
103103
./target/${{ matrix.target }}/release/zoxide.exe
104104
105105
- name: Upload artifact
106-
uses: actions/upload-artifact@82c141cc518b40d92cc801eee768e7aafc9c2fa2 # v2.3.1
106+
uses: actions/upload-artifact@v3
107107
with:
108108
name: ${{ matrix.target }}
109109
path: |
@@ -113,7 +113,7 @@ jobs:
113113
114114
- name: Create release
115115
if: ${{ github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'chore(release)') }}
116-
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
116+
uses: softprops/action-gh-release@v1
117117
with:
118118
draft: true
119119
files: |

src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ impl Fzf {
3535
#[cfg(not(windows))]
3636
let program = "fzf";
3737

38+
// TODO: check version of fzf here.
39+
3840
let mut cmd = Command::new(program);
3941
cmd.args([
4042
// Search mode

templates/nushell.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ if (not ($env | default false __zoxide_hooked | get __zoxide_hooked)) {
4040

4141
# Jump to a directory using only keywords.
4242
def-env __zoxide_z [...rest:string] {
43-
# `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
4443
let arg0 = ($rest | append '~').0
4544
let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
4645
$arg0

0 commit comments

Comments
 (0)