Skip to content

Commit

Permalink
fix(github-actions): fix image name (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
uetchy authored and Eunjae Lee committed Dec 24, 2019
1 parent c017067 commit 33f710c
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions packages/shipjs/src/step/setup/CI/addGitHubActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,15 @@ function createGitHubAction({ content, actionPath, dir, dryRun }) {

function getBaseConfig({ releaseBranch }) {
return ejs.render(
`
name: Ship js trigger
`name: Ship js trigger
on:
push:
branches:
- <%= releaseBranch %>
jobs:
build:
name: Build
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
Expand All @@ -124,8 +123,7 @@ jobs:

function getManualPrepareConfig({ baseBranch, gitUserName, gitUserEmail }) {
return ejs.render(
`
name: Ship js Manual Prepare
`name: Ship js Manual Prepare
on:
issue_comment:
types: [created]
Expand All @@ -135,7 +133,7 @@ jobs:
github.event_name == 'issue_comment' &&
(github.event.comment.author_association == 'member' || github.event.comment.author_association == 'owner') &&
startsWith(github.event.comment.body, '@shipjs prepare')
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
Expand All @@ -159,7 +157,7 @@ jobs:
create_done_comment:
if: success()
needs: manual_prepare
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/github@master
env:
Expand All @@ -170,7 +168,7 @@ jobs:
create_fail_comment:
if: cancelled() || failure()
needs: manual_prepare
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/github@master
env:
Expand All @@ -189,15 +187,14 @@ function getScheduleConfig({
gitUserEmail,
}) {
return ejs.render(
`
name: Ship js Schedule Prepare
`name: Ship js Schedule Prepare
on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "<%= cronExpr %>"
jobs:
schedule_prepare:
runs-on: Ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
Expand Down

0 comments on commit 33f710c

Please sign in to comment.