From ab1c92261e185a2d014880a510d7a215dbd5b1b5 Mon Sep 17 00:00:00 2001 From: James Ives Date: Sat, 11 Jan 2020 19:30:07 -0500 Subject: [PATCH] Integration Test Changes --- .github/workflows/integration.yml | 4 +--- lib/git.js | 2 +- src/git.ts | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index b4864e86..ff0f4ca2 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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. diff --git a/lib/git.js b/lib/git.js index 13957796..72448cf4 100644 --- a/lib/git.js +++ b/lib/git.js @@ -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}`); diff --git a/src/git.ts b/src/git.ts index 8681d92e..d950e629 100644 --- a/src/git.ts +++ b/src/git.ts @@ -22,7 +22,7 @@ export async function init(): Promise { 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 {