mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
fix: authentication in actions
This commit is contained in:
parent
c01f10e561
commit
e6f85b42e6
2 changed files with 7 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -33,11 +33,13 @@ jobs:
|
|||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 2
|
||||
token: ${{ secrets.BOT_ACCESS_TOKEN }}
|
||||
- name: Configure Git
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
|
||||
run: |
|
||||
git config --local user.name tiktokbot
|
||||
git config --local user.email tiktokbot@users.noreply.github.com
|
||||
git config --global credential.helper '!f() { echo "protocol=https\nhost=github.com" ; echo "username=oauth_token" ; echo "password=${GITHUB_TOKEN}" ; }; f'
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
|
|
|
@ -20,7 +20,10 @@ export async function runAsync(runScriptOptions: IRunScriptOptions): Promise<voi
|
|||
} = runScriptOptions;
|
||||
|
||||
const temporaryDirectory: string = path.resolve(buildFolderPath, 'temp');
|
||||
const testRepoURL: string = 'git@github.com:tiktok/sparo.git';
|
||||
let testRepoURL: string = 'git@github.com:tiktok/sparo.git';
|
||||
if (production) {
|
||||
testRepoURL = 'https://github.com/tiktok/sparo.git';
|
||||
}
|
||||
const repoFolder: string = path.resolve(temporaryDirectory, 'sparo');
|
||||
|
||||
await FileSystem.deleteFolderAsync(repoFolder);
|
||||
|
|
Loading…
Reference in a new issue