From b5d6d9185117117716946fefb305636c350efab9 Mon Sep 17 00:00:00 2001 From: reya Date: Thu, 5 Mar 2026 08:46:56 +0700 Subject: [PATCH] chore: config auto update and fix ci --- .github/workflows/release.yml | 4 +--- crates/auto_update/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a5df1e..5ce7294 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,7 +130,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Make get-crate-version executable run: chmod +x script/get-crate-version @@ -156,13 +156,11 @@ jobs: id: create_release uses: softprops/action-gh-release@v2 with: - repository: reyakov/coop tag_name: ${{ steps.version.outputs.tag }} name: ${{ steps.version.outputs.tag }} draft: true prerelease: false generate_release_notes: true - token: ${{ secrets.TOKEN }} files: | artifacts/**/* diff --git a/crates/auto_update/src/lib.rs b/crates/auto_update/src/lib.rs index 192b4b6..596025d 100644 --- a/crates/auto_update/src/lib.rs +++ b/crates/auto_update/src/lib.rs @@ -3,7 +3,7 @@ use std::path::{Path, PathBuf}; use std::sync::Arc; use std::time::Duration; -use anyhow::{anyhow, Context as AnyhowContext, Error}; +use anyhow::{Context as AnyhowContext, Error, anyhow}; use gpui::http_client::{AsyncBody, HttpClient}; use gpui::{ App, AppContext, AsyncApp, BackgroundExecutor, Context, Entity, Global, Subscription, Task, @@ -11,7 +11,7 @@ use gpui::{ }; use semver::Version; use serde::Deserialize; -use smallvec::{smallvec, SmallVec}; +use smallvec::{SmallVec, smallvec}; use smol::fs::File; use smol::io::AsyncReadExt; use smol::process::Command; @@ -20,11 +20,11 @@ const GITHUB_API_URL: &str = "https://api.github.com"; const COOP_UPDATE_EXPLANATION: &str = "COOP_UPDATE_EXPLANATION"; fn get_github_repo_owner() -> String { - std::env::var("COOP_GITHUB_REPO_OWNER").unwrap_or_else(|_| "your-username".to_string()) + std::env::var("COOP_GITHUB_REPO_OWNER").unwrap_or_else(|_| "reyakov".to_string()) } fn get_github_repo_name() -> String { - std::env::var("COOP_GITHUB_REPO_NAME").unwrap_or_else(|_| "your-repo".to_string()) + std::env::var("COOP_GITHUB_REPO_NAME").unwrap_or_else(|_| "coop".to_string()) } fn is_flatpak_installation() -> bool {