Skip to content

Commit

Permalink
fix(actions): fix ejs syntax (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyankatsu0105 authored May 8, 2020
1 parent e28e0ee commit 8055a9f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/shipjs/src/step/setup/CI/addGitHubActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ jobs:
- uses: actions/checkout@v2
with:
ref: <%= releaseBranch %>
<%= if(baseBranch !== releaseBranch) fetch-depth: 0 %>
<% if (baseBranch !== releaseBranch) { %>
fetch-depth: 0
<% } %>
- uses: actions/setup-node@v1
with:
registry-url: "https://registry.npmjs.org"
Expand All @@ -103,7 +105,9 @@ jobs:
else
npm install
fi
<%= if(baseBranch !== releaseBranch) - run: git fetch %>
<% if (baseBranch !== releaseBranch) { %>
- run: git fetch
<% } %>
- run: npm run release:trigger
env:
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 8055a9f

Please sign in to comment.