1
0
Fork 0
mirror of https://github.com/veggiemonk/awesome-docker.git synced 2025-04-20 16:08:03 +02:00

Using node in npm action

This commit is contained in:
Julien Bisconti 2019-01-25 19:53:27 +01:00
parent 00a012b6d7
commit 2d6183d1f4
No known key found for this signature in database
GPG key ID: 62772C6698F736CB
2 changed files with 4 additions and 4 deletions

View file

@ -23,10 +23,10 @@ action "npm run build" {
}
action "Build metadata" {
uses = "veggiemonk/bin/git@master"
runs = "sh -c \"$@\""
args = "node buildMetadata.js"
needs = ["npm run build"]
uses = "actions/npm@master"
runs = "sh -c \"node $*\""
args = "buildMetadata.js"
secrets = ["GITHUB_TOKEN"]
env = {
GIT_EMAIL = "alex.blaine@layder.io"

View file

@ -18,7 +18,7 @@ files=$(git diff --cached --numstat | wc -l | tr -d '[:space:]');
[[ $files -eq 0 ]] && echo "nothing to push, exiting..." && exit
echo "Commiting files"
git commit -m "Automated update repository metadata [skip ci]"
git commit -m "Automated update repository metadata [skip-ci]"
echo "Pushing changes"
git push https://"$GIT_USER:$GITHUB_TOKEN"@github.com/veggiemonk/awesome-docker master >/dev/null 2>&1