Files
bot-agents/scripts/protect-source.sh
T
Danny Kim 0a9f86a102
Agents / agent (pull_request) Has been skipped
Check / check (pull_request) Successful in 38s
Group the sources into aliased modules and lint with the published plugins
2026-10-18 23:50:27 +09:00

11 lines
419 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
path=$(mktemp -d "${RUNNER_TEMP}/bot-agents-source-XXXXXX")
cp -a "${ACTION_PATH}/src" "${path}/"
# package.json makes Node load the TypeScript sources as ES modules and
# resolves their `#` aliases.
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}"