Skip to content

Commit

Permalink
fix: Test release
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Oct 18, 2019
1 parent 1f63990 commit 37217f5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/helpers/git.js
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down Expand Up @@ -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}`)
)

/**
Expand Down

0 comments on commit 37217f5

Please sign in to comment.