Skip to content

Commit

Permalink
use pkgm install
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jan 21, 2025
1 parent bf9032f commit 5dafa5f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dagger.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "github",
"sdk": "github.com/fluentci-io/daggerverse/deno-sdk@main",
"version": "v0.4.1",
"version": "v0.7.1",
"description": "",
"author": "Tsiry Sandratraina",
"license": "MIT"
}
}
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentci/github",
"version": "0.7.0",
"version": "0.7.1",
"exports": "./mod.ts",
"importMap": "import_map.json",
"tasks": {
Expand Down Expand Up @@ -31,4 +31,4 @@
"gen/"
]
}
}
}
6 changes: 2 additions & 4 deletions fluentci.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
[package]
authors = [
"Tsiry Sandratraina <[email protected]>",
]
authors = ["Tsiry Sandratraina <[email protected]>"]
description = "CI/CD Plugin for Github"
license = "MIT"
name = "github"
version = "0.7.0"
version = "0.7.1"
2 changes: 1 addition & 1 deletion plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "github"
version = "0.7.0"
version = "0.7.1"

[lib]
crate-type = ["cdylib"]
Expand Down
8 changes: 4 additions & 4 deletions src/jobs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { dag, env, exit, type Directory, type Secret } from "../deps.ts";
import { dag, type Directory, env, exit, type Secret } from "../deps.ts";
import { getDirectory, getGithubToken } from "./helpers.ts";

export enum Job {
Expand All @@ -22,7 +22,7 @@ export async function releaseUpload(
src: string | Directory,
tag: string,
file: string,
token: string | Secret
token: string | Secret,
): Promise<string> {
const TAG = env.get("TAG") || tag || "latest";
const FILE = env.get("FILE") || file!;
Expand All @@ -41,7 +41,7 @@ export async function releaseUpload(
.from("pkgxdev/pkgx:latest")
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "ca-certificates"])
.withExec(["pkgx", "install", "gh", "git"])
.withExec(["pkgm", "install", "gh", "git"])
.withMountedCache("/assets", dag.cacheVolume("gh-release-assets"))
.withDirectory("/app", context)
.withWorkdir("/app")
Expand All @@ -55,7 +55,7 @@ export type JobExec = (
src: string | Directory,
tag: string,
file: string,
token: string | Secret
token: string | Secret,
) => Promise<string>;

export const runnableJobs: Record<Job, JobExec> = {
Expand Down

0 comments on commit 5dafa5f

Please sign in to comment.