diff --git a/.github/bin/cron.ts b/.github/bin/cron.ts index eb87a1c..0916087 100755 --- a/.github/bin/cron.ts +++ b/.github/bin/cron.ts @@ -1,5 +1,5 @@ #!/usr/bin/env -S deno run -A -import { $ } from 'dax/mod.ts' +import { $ } from '../lib/deps.ts' await $ `echo hello world` diff --git a/.github/lib/deps.ts b/.github/lib/deps.ts index b4f73d7..473a516 100644 --- a/.github/lib/deps.ts +++ b/.github/lib/deps.ts @@ -4,6 +4,6 @@ export { $ } from 'dax/mod.ts' export { colors } from 'dax/src/deps.ts' export * as uuid from 'std/uuid/mod.ts' export const { log } = console -export * as p from 'npm:blend-promise-utils' +export * as P from 'npm:blend-promise-utils' export * as dax from 'dax/src/deps.ts' export const chalk = _chalk diff --git a/.github/scripts/ciutil b/.github/scripts/ciutil index dd8d3b2..f656445 100755 --- a/.github/scripts/ciutil +++ b/.github/scripts/ciutil @@ -63,10 +63,14 @@ optimize-apt-get-install() { git-commit-to-repository() { git config user.name github-actions git config user.email github-actions@github.com - git pull --rebase + git pull --rebase --autostash git add . --verbose - stats=$(git diff --cached --shortstat | sed -E 's/ (insertion|insertions|deletion|deletions)//g') - git commit -m "⚡️ CI: $stats [skip ci]" -a || true + + stats=$(git diff --cached --shortstat | sed -E 's/ (insertion?|deletion?)//g') + DATE=$(date +%Y:%m:%d-%H:%M:%S) + + git commit -m "⚡️ CI: \`$DATE\` [$stats]" -a || true + git push } set-env-variables() {