From 4c58b52777aa8e1c9a8d8d20a4350be039bcdf90 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Fri, 14 Oct 2022 21:26:57 +0800 Subject: fix(ci): Fix deprecate command set-output Signed-off-by: KunoiSayami --- .github/workflows/build-cross.yml | 2 +- .github/workflows/build.yml | 6 +++--- Cargo.lock | 2 +- src/main.rs | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-cross.yml b/.github/workflows/build-cross.yml index 68f08fd..4d7f548 100644 --- a/.github/workflows/build-cross.yml +++ b/.github/workflows/build-cross.yml @@ -10,7 +10,7 @@ jobs: build_aarch64: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: toolchain: stable diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef5e2be..7b80543 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: name: Build runs-on: ${{ matrix.job.os }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -40,7 +40,7 @@ jobs: BIN='cgit-simple-authentication_darwin_amd64' mv target/release/cgit-simple-authentication target/release/$BIN fi - echo "::set-output name=bin::target/release/$BIN" + echo "output_binary_name=target/release/$BIN" >> $GITHUB_ENV - uses: actions/upload-artifact@v2 with: name: artifact @@ -50,6 +50,6 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: ${{ steps.rename.outputs.bin }} + files: ${{ env.output_binary_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index df41e08..6dbbf05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,7 +159,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cgit-simple-authentication" -version = "4.0.0-beta" +version = "4.0.0-rc" dependencies = [ "anyhow", "argon2", diff --git a/src/main.rs b/src/main.rs index 33fb0b3..e3a347a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,7 +33,6 @@ use sqlx::sqlite::SqliteConnectOptions; use sqlx::{ConnectOptions, Connection, SqliteConnection}; use std::env; use std::io::{BufRead, Write}; -use std::result::Result::Ok; use std::str::FromStr; use tempdir::TempDir; use tokio_stream::StreamExt as _; -- cgit v1.3.1