mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-18 09:52:35 +00:00
chore: fix env
This commit is contained in:
parent
4c6d8048c5
commit
174e0a884c
2 changed files with 3 additions and 9 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
#
|
#
|
||||||
# Entrypoint for Docker.
|
# Entrypoint for Docker.
|
||||||
|
|
||||||
readonly CONFIGURATION_FILE="${1}"
|
readonly CONFIGURATION_FILE="${INPUT_CONFIGURATIONFILE}"
|
||||||
readonly TOKEN="${2}"
|
readonly TOKEN="${INPUT_TOKEN}"
|
||||||
|
|
||||||
export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${CONFIGURATION_FILE}"
|
export RENOVATE_CONFIG_FILE="${GITHUB_WORKSPACE}/${CONFIGURATION_FILE}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,4 @@
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const { execSync } = require('child_process');
|
const { execSync } = require('child_process');
|
||||||
|
|
||||||
const cfg = process.env[`INPUT_CONFIGURATIONFILE`];
|
execSync(`bash -c ${process.env.GITHUB_WORKSPACE}/src/entrypoint.sh`);
|
||||||
const token = process.env[`INPUT_TOKEN`];
|
|
||||||
const ws = process.env.GITHUB_WORKSPACE;
|
|
||||||
|
|
||||||
console.dir(process.env);
|
|
||||||
|
|
||||||
execSync(`bash -c ${ws}/src/entrypoint.sh '${cfg}' '${token}'`);
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue