mirror of
https://github.com/docker/build-push-action.git
synced 2025-06-14 15:17:12 +02:00
Fix Git context
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -7,7 +7,9 @@ import * as core from '@actions/core';
|
||||
import * as github from '@actions/github';
|
||||
|
||||
export const tmpDir: string = fs.mkdtempSync(path.join(os.tmpdir(), 'docker-build-push-'));
|
||||
const defaultContext: string = `https://github.com/${github.context.repo.owner}/${github.context.repo.repo}#${github.context.ref}`;
|
||||
const defaultContext: string = `https://github.com/${github.context.repo.owner}/${
|
||||
github.context.repo.repo
|
||||
}.git#${github.context.ref.replace(/^refs\//, '')}`;
|
||||
|
||||
export interface Inputs {
|
||||
context: string;
|
||||
|
Reference in New Issue
Block a user