mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-05-11 13:19:43 +08:00
Switch Action to use node12
This commit is contained in:
parent
e97d20ce65
commit
ef107e1d4b
@ -36,8 +36,8 @@ inputs:
|
|||||||
default: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
default: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'node12'
|
||||||
image: 'Dockerfile'
|
main: 'index.js'
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: 'git-commit'
|
icon: 'git-commit'
|
||||||
|
13
index.js
Normal file
13
index.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
const core = require('@actions/core');
|
||||||
|
const exec = require('@actions/exec');
|
||||||
|
|
||||||
|
async function run() {
|
||||||
|
try {
|
||||||
|
await exec.exec('sh', ['entrypoint.sh']);
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
core.setFailed(error.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
run()
|
Loading…
x
Reference in New Issue
Block a user