Skip to content

Commit

Permalink
fix: removed github logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 30, 2023
1 parent b145f93 commit 50de749
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
6 changes: 0 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ branding:
icon: upload-cloud
color: blue
inputs:
# github-token:
# description: 'Github token'
# required: true
# github-username:
# description: 'The Github username that is linked to the github token'
# required: true
tag-prefix:
description: 'Prefix that is used for the git tag'
default: 'v'
Expand Down
16 changes: 0 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,6 @@ if (process.env.PACKAGEJSON_DIR) {
const workspace = process.env.GITHUB_WORKSPACE
console.log(`Current workspace: ${workspace}`)

// // Github Token
// const githubToken = core.getInput('github-token')
// if (githubToken == null || githubToken == "") {
// core.setFailed('github-token not found as input.')
// return
// }
// // Github Username
// const githubUsername = core.getInput('github-username')
// if (githubUsername == null || githubUsername == "") {
// core.setFailed('github-username not found as input.')
// return
// }

// =====================================================================
// ================================ RUN ================================
// =====================================================================
Expand Down Expand Up @@ -86,9 +73,6 @@ async function run() {
await runInWorkspace('git', ['tag', tag])

// Pushing changes
// const remoteGitRepoUrl = `https://${githubToken}:x-oauth-basic@github.com/${process.env.GITHUB_REPOSITORY}.git`
// await runInWorkspace('git', ['push', remoteGitRepoUrl])
// await runInWorkspace('git', ['push', remoteGitRepoUrl, '--tags'])
await runInWorkspace('git', ['push'])
await runInWorkspace('git', ['push', '--tags'])

Expand Down

0 comments on commit 50de749

Please sign in to comment.