debug: want to know args to entry file
This commit is contained in:
parent
2a35613e76
commit
41e33cee71
|
@ -1,5 +1,7 @@
|
||||||
FROM node:10-slim
|
FROM node:10-slim
|
||||||
|
|
||||||
|
RUN "apt-get install git"
|
||||||
|
|
||||||
LABEL version="1.0.0"
|
LABEL version="1.0.0"
|
||||||
LABEL repository="http://github.com/mikeal/merge-release"
|
LABEL repository="http://github.com/mikeal/merge-release"
|
||||||
LABEL homepage="http://github.com/merge-release"
|
LABEL homepage="http://github.com/merge-release"
|
||||||
|
@ -12,6 +14,7 @@ LABEL com.github.actions.color="red"
|
||||||
COPY LICENSE README.md /
|
COPY LICENSE README.md /
|
||||||
|
|
||||||
COPY "entrypoint.sh" "/entrypoint.sh"
|
COPY "entrypoint.sh" "/entrypoint.sh"
|
||||||
|
COPY cli.js /cli.js
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["help"]
|
CMD ["help"]
|
||||||
|
|
||||||
|
|
7
cli.js
7
cli.js
|
@ -1,7 +1,14 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
console.log(process.argv)
|
||||||
|
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const { execSync } = require('child_process')
|
const { execSync } = require('child_process')
|
||||||
|
|
||||||
|
/* Configure git */
|
||||||
|
|
||||||
|
//fs.writeFileSync('git-credentials')
|
||||||
|
//execSync('git
|
||||||
|
|
||||||
const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString())
|
const event = JSON.parse(fs.readFileSync('/github/workflow/event.json').toString())
|
||||||
|
|
||||||
let messages = event.commits.map(commit => commit.message)
|
let messages = event.commits.map(commit => commit.message)
|
||||||
|
|
|
@ -12,4 +12,4 @@ if [ -n "$NPM_AUTH_TOKEN" ]; then
|
||||||
chmod 0600 "$NPM_CONFIG_USERCONFIG"
|
chmod 0600 "$NPM_CONFIG_USERCONFIG"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sh -c "npx merge-release $*"
|
sh -c "node cli.js $*"
|
||||||
|
|
Loading…
Reference in New Issue