Update main.workflow

This commit is contained in:
Julien Bisconti 2019-03-02 21:28:06 +01:00 committed by GitHub
parent d84b9951e4
commit 76f292ee05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

86
.github/main.workflow vendored
View File

@ -1,48 +1,48 @@
workflow "New workflow" { # workflow "New workflow" {
on = "push" # on = "push"
resolves = ["push changes"] # resolves = ["push changes"]
} # }
action "skip-commit" { # action "skip-commit" {
uses = "veggiemonk/skip-commit@449e94fa83e7918c4079f37322205e17b868f993" # uses = "veggiemonk/skip-commit@449e94fa83e7918c4079f37322205e17b868f993"
env = { # env = {
COMMIT_FILTER = "skip-ci" # COMMIT_FILTER = "skip-ci"
} # }
} # }
action "npm install" { # action "npm install" {
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b" # uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
needs = ["skip-commit"] # needs = ["skip-commit"]
args = "install" # args = "install"
} # }
action "npm run build" { # action "npm run build" {
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b" # uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
needs = ["npm install"] # needs = ["npm install"]
args = "run build" # args = "run build"
} # }
action "Build metadata" { # action "Build metadata" {
needs = ["npm run build"] # needs = ["npm run build"]
uses = "actions/npm@master" # uses = "actions/npm@master"
runs = "sh -l -c" # runs = "sh -l -c"
args = ["node buildMetadata.js"] # args = ["node buildMetadata.js"]
secrets = ["GITHUB_TOKEN"] # secrets = ["GITHUB_TOKEN"]
env = { # env = {
GIT_EMAIL = "alex.blaine@layder.io" # GIT_EMAIL = "alex.blaine@layder.io"
GIT_USERNAME = "veggiemonk" # GIT_USERNAME = "veggiemonk"
} # }
} # }
action "push changes" { # action "push changes" {
uses = "veggiemonk/bin/git@master" # uses = "veggiemonk/bin/git@master"
needs = ["Build metadata"] # needs = ["Build metadata"]
runs = "sh -c $@" # runs = "sh -c $@"
args = "push.sh" # args = "push.sh"
secrets = ["GITHUB_TOKEN"] # secrets = ["GITHUB_TOKEN"]
env = { # env = {
GIT_EMAIL = "alex.blaine@layder.io" # GIT_EMAIL = "alex.blaine@layder.io"
GIT_USERNAME = "veggiemonk-bot" # GIT_USERNAME = "veggiemonk-bot"
GIT_USER = "veggiemonk" # GIT_USER = "veggiemonk"
} # }
} # }