Files
bot-agents/scripts/protect-source.sh
T
Danny Kim 8f23da2b42
Agents / agent (pull_request) Has been skipped
Check / check (pull_request) Successful in 58s
Move the action from Deno to Node.js and Vite+
2026-10-16 02:20:49 +09:00

11 lines
415 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
path=$(mktemp -d "${RUNNER_TEMP}/bot-agents-source-XXXXXX")
mkdir "${path}/src"
cp -a "${ACTION_PATH}"/src/*.ts "${path}/src/"
# package.json makes Node load the TypeScript sources as ES modules.
cp -a "${ACTION_PATH}/package.json" "${ACTION_PATH}/profiles.json" "${ACTION_PATH}/prompt.md" "${path}/"
chmod -R go-w "${path}"
printf 'path=%s\n' "${path}" >> "${GITHUB_OUTPUT}"