mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2026-02-15 01:04:25 +01:00
33
.github/main.workflow
vendored
33
.github/main.workflow
vendored
@@ -1,10 +1,18 @@
|
||||
workflow "New workflow" {
|
||||
on = "push"
|
||||
resolves = ["Shell"]
|
||||
resolves = ["push changes"]
|
||||
}
|
||||
|
||||
action "skip-commit" {
|
||||
uses = "veggiemonk/skip-commit@449e94fa83e7918c4079f37322205e17b868f993"
|
||||
env = {
|
||||
COMMIT_FILTER = "skip-ci"
|
||||
}
|
||||
}
|
||||
|
||||
action "npm install" {
|
||||
uses = "actions/npm@de7a3705a9510ee12702e124482fad6af249991b"
|
||||
needs = ["skip-commit"]
|
||||
args = "install"
|
||||
}
|
||||
|
||||
@@ -14,14 +22,27 @@ action "npm run build" {
|
||||
args = "run build"
|
||||
}
|
||||
|
||||
action "Shell" {
|
||||
uses = "veggiemonk/bin/git@master"
|
||||
args = "TOKEN=$GITHUB_TOKEN node buildMetadata.js && ./push.sh"
|
||||
action "Build metadata" {
|
||||
needs = ["npm run build"]
|
||||
uses = "actions/npm@master"
|
||||
runs = "sh -l -c"
|
||||
args = ["node buildMetadata.js"]
|
||||
secrets = ["GITHUB_TOKEN"]
|
||||
env = {
|
||||
"GIT_EMAIL" = "alex.blaine@layder.io"
|
||||
GIT_EMAIL = "alex.blaine@layder.io"
|
||||
GIT_USERNAME = "veggiemonk"
|
||||
}
|
||||
runs = "sh -c \"$@\""
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user