mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Debugging
This commit is contained in:
parent
a5b924c495
commit
1a1a0a806f
@ -34,9 +34,9 @@ function init() {
|
||||
`The deployment folder cannot be prefixed with '/' or './'. Instead reference the folder name directly.`
|
||||
);
|
||||
}*/
|
||||
yield util_1.execute(`git init`, constants_1.action.build);
|
||||
yield util_1.execute(`git config user.name ${constants_1.action.pusher.name}`, constants_1.action.build);
|
||||
yield util_1.execute(`git config user.email ${constants_1.action.pusher.email}`, constants_1.action.build);
|
||||
yield util_1.execute(`git init`, constants_1.workspace);
|
||||
yield util_1.execute(`git config user.name ${constants_1.action.pusher.name}`, constants_1.workspace);
|
||||
yield util_1.execute(`git config user.email ${constants_1.action.pusher.email}`, constants_1.workspace);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(`There was an error initializing the repository: ${error}`);
|
||||
|
@ -20,9 +20,9 @@ export async function init(): Promise<any> {
|
||||
);
|
||||
}*/
|
||||
|
||||
await execute(`git init`, action.build);
|
||||
await execute(`git config user.name ${action.pusher.name}`, action.build);
|
||||
await execute(`git config user.email ${action.pusher.email}`, action.build);
|
||||
await execute(`git init`, workspace);
|
||||
await execute(`git config user.name ${action.pusher.name}`, workspace);
|
||||
await execute(`git config user.email ${action.pusher.email}`, workspace);
|
||||
} catch (error) {
|
||||
core.setFailed(`There was an error initializing the repository: ${error}`);
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user