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:
parent
00a012b6d7
commit
2d6183d1f4
2 changed files with 4 additions and 4 deletions
6
.github/main.workflow
vendored
6
.github/main.workflow
vendored
|
@ -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"
|
||||
|
|
2
push.sh
2
push.sh
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue