awesome-docker/.github/main.workflow

49 lines
1.0 KiB
Markdown
Raw Normal View History

2019-01-24 16:05:14 -05:00
workflow "New workflow" {
on = "push"
2019-01-25 16:26:52 -05:00
resolves = ["push changes"]
}
action "skip-commit" {
uses = "veggiemonk/skip-commit@449e94fa83e7918c4079f37322205e17b868f993"
env = {
COMMIT_FILTER = "skip-ci"
}
2019-01-24 16:05:14 -05:00
}
action "npm install" {
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
2019-01-25 16:26:52 -05:00
needs = ["skip-commit"]
2019-01-24 16:05:14 -05:00
args = "install"
}
action "npm run build" {
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
needs = ["npm install"]
args = "run build"
}
2019-01-25 16:26:52 -05:00
action "Build metadata" {
2019-01-24 16:05:14 -05:00
needs = ["npm run build"]
2019-01-25 16:26:52 -05:00
uses = "actions/npm@master"
runs = "sh -l -c"
args = ["node buildMetadata.js"]
2019-01-24 16:05:14 -05:00
secrets = ["GITHUB_TOKEN"]
env = {
2019-01-25 16:26:52 -05:00
GIT_EMAIL = "alex.blaine@layder.io"
2019-01-24 16:05:14 -05:00
GIT_USERNAME = "veggiemonk"
}
2019-01-25 16:26:52 -05:00
}
action "push changes" {
uses = "veggiemonk/bin/git@master"
needs = ["Build metadata"]
runs = "sh -c $@"
args = "push.sh"
secrets = ["GITHUB_TOKEN"]
env = {
GIT_EMAIL = "alex.blaine@layder.io"
GIT_USERNAME = "veggiemonk-bot"
GIT_USER = "veggiemonk"
}
2019-01-24 16:05:14 -05:00
}