Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for agent endpoint #92

Merged
merged 1 commit into from
Jul 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ inputs:
slug:
description: 'RelativeCI project slug'
required: false
endpoint:
description: 'RelativeCI ingest endpoint'
required: false
includeCommitMessage:
description: 'Include commit message'
required: false
Expand Down
6 changes: 4 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50450,7 +50450,7 @@ var _a = process.env,

function run() {
return index_awaiter(this, void 0, void 0, function () {
var token, key, slug, webpackStatsFile, artifactName, includeCommitMessage, debug, eventName, agentParams, webpackStats, err_1;
var token, key, slug, endpoint, webpackStatsFile, artifactName, includeCommitMessage, debug, eventName, agentParams, webpackStats, err_1;
return index_generator(this, function (_a) {
switch (_a.label) {
case 0:
Expand All @@ -50459,6 +50459,7 @@ function run() {
token = core.getInput('token');
key = core.getInput('key');
slug = core.getInput('slug');
endpoint = core.getInput('endpoint');
webpackStatsFile = core.getInput('webpackStatsFile');
artifactName = core.getInput('artifactName');
includeCommitMessage = core.getInput('includeCommitMessage') === 'true';
Expand Down Expand Up @@ -50531,7 +50532,8 @@ function run() {
case 9:
// Set RelativeCI service key
// @TODO pass it as an argument to agent
process.env.RELATIVE_CI_KEY = key; // Enable debugging for debug input or ACTIONS_STEP_DEBUG is set
process.env.RELATIVE_CI_KEY = key;
process.env.RELATIVE_CI_ENDPOINT = endpoint; // Enable debugging for debug input or ACTIONS_STEP_DEBUG is set

if (debug || ACTIONS_STEP_DEBUG) {
process.env.DEBUG = 'relative-ci:agent';
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ async function run() {
const token = core.getInput('token');
const key = core.getInput('key');
const slug = core.getInput('slug');
const endpoint = core.getInput('endpoint');
const webpackStatsFile = core.getInput('webpackStatsFile');
const artifactName = core.getInput('artifactName');
const includeCommitMessage = core.getInput('includeCommitMessage') === 'true';
Expand Down Expand Up @@ -56,6 +57,7 @@ async function run() {
// Set RelativeCI service key
// @TODO pass it as an argument to agent
process.env.RELATIVE_CI_KEY = key;
process.env.RELATIVE_CI_ENDPOINT = endpoint;

// Enable debugging for debug input or ACTIONS_STEP_DEBUG is set
if (debug || ACTIONS_STEP_DEBUG) {
Expand Down