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

Push from non-tag triggered workflows if name is specified #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
simple attempt to handle name input if not a tag push triggered workflow
  • Loading branch information
Alkrun committed Jan 8, 2020
commit 8f19e114dbd04970e241b869b601a01d180c1f1c
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import { env } from "process";

async function run() {
try {
const config = parseConfig(env);
if (!isTag(config.github_ref)) {
const config = parseConfig(env);
if (!isTag(config.github_ref) && !config.input_name) {
throw new Error(`⚠️ GitHub Releases requires a tag`);
}
GitHub.plugin(require("@octokit/plugin-throttling"));