From 37217f530cbbb866612b86d6c8a27d068d16e652 Mon Sep 17 00:00:00 2001 From: Tycho Bokdam Date: Fri, 18 Oct 2019 11:13:32 +0200 Subject: [PATCH] fix: Test release --- src/helpers/git.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/helpers/git.js b/src/helpers/git.js index fa88e06..ea57f54 100644 --- a/src/helpers/git.js +++ b/src/helpers/git.js @@ -1,7 +1,7 @@ const core = require('@actions/core') const exec = require('@actions/exec') -const { GITHUB_REPOSITORY } = process.env +const { GITHUB_REPOSITORY, GITHUB_REF } = process.env module.exports = new (class Git { @@ -74,14 +74,10 @@ module.exports = new (class Git { /** * Push all changes * - * @param branch - * @param origin - * @param args - * * @returns {*} */ - push = (branch, origin, args = []) => ( - this.exec(`push ${args.join(' ')} ${origin} ${branch}`) + push = () => ( + this.exec(`push ${GITHUB_REF}`) ) /**