Skip to content

Commit

Permalink
🐛Don't run new desrev issue workflow on forks (#33456)
Browse files Browse the repository at this point in the history
Apologies to those who had workflow run notifications on their personal forks.
  • Loading branch information
alanorozco committed Mar 24, 2021
1 parent 63de55a commit 55e5506
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/create-design-review-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,14 @@ function env(key) {
}

async function createDesignReviewIssue() {
const repo = env('GITHUB_REPOSITORY');
if (repo !== 'ampproject/amphtml') {
// don't run on forks.
return;
}
const {title, 'html_url': htmlUrl} = await postGithubIssue(
env('GITHUB_TOKEN'),
env('GITHUB_REPOSITORY'),
repo,
getNextIssueData()
);
console./*OK*/ log(title);
Expand Down

0 comments on commit 55e5506

Please sign in to comment.