mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Integration Test Changes
This commit is contained in:
parent
8e9a3f08b0
commit
ab1c92261e
4
.github/workflows/integration.yml
vendored
4
.github/workflows/integration.yml
vendored
@ -5,10 +5,8 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- releases/v3
|
||||
- releases/v3-test
|
||||
|
||||
jobs:
|
||||
# Deploys using checkout@v1 with an ACCESS_TOKEN.
|
||||
|
@ -34,7 +34,7 @@ function init() {
|
||||
yield util_1.execute(`git init`, constants_1.workspace);
|
||||
yield util_1.execute(`git config user.name ${constants_1.action.name}`, constants_1.workspace);
|
||||
yield util_1.execute(`git config user.email ${constants_1.action.email}`, constants_1.workspace);
|
||||
yield util_1.execute(`git fetch`, constants_1.workspace);
|
||||
yield util_1.execute(`git pull ${constants_1.repositoryPath}`, constants_1.workspace);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(`There was an error initializing the repository: ${error}`);
|
||||
|
@ -22,7 +22,7 @@ export async function init(): Promise<any> {
|
||||
await execute(`git init`, workspace);
|
||||
await execute(`git config user.name ${action.name}`, workspace);
|
||||
await execute(`git config user.email ${action.email}`, workspace);
|
||||
await execute(`git fetch`, workspace);
|
||||
await execute(`git pull ${repositoryPath}`, workspace);
|
||||
} catch (error) {
|
||||
core.setFailed(`There was an error initializing the repository: ${error}`);
|
||||
} finally {
|
||||
|
Loading…
Reference in New Issue
Block a user