Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Jan 21, 2025
1 parent 4ecbca0 commit 860bda5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29929,6 +29929,7 @@ exports.run = run;
const node_fs_1 = __nccwpck_require__(3024);
const node_path_1 = __nccwpck_require__(6760);
const core_1 = __nccwpck_require__(9999);
const exec_1 = __nccwpck_require__(8872);
const github_1 = __nccwpck_require__(2819);
const utils_1 = __nccwpck_require__(6236);
const trigger_1 = __importDefault(__nccwpck_require__(6671));
Expand Down Expand Up @@ -29959,6 +29960,8 @@ function run() {
}
}
yield (0, utils_1.setGitConfig)();
// git config --global url.https://${{ secrets.MY_PAT }}@github.com/.insteadOf https://github.com/
yield (0, exec_1.exec)('git', ['config', '--global', `url.https://${token}@github.com/.insteadOf`, 'https://github.com/']);
(0, trigger_1.default)({
owner,
repo,
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { readFileSync } from 'node:fs'
import { resolve } from 'node:path'
import { getInput, info } from '@actions/core'
import { exec } from '@actions/exec'
import { context } from '@actions/github'
import { setGitConfig } from './utils'
import useTrigger from './utils/trigger'
Expand Down Expand Up @@ -31,7 +32,8 @@ export async function run(): Promise<void> {
}

await setGitConfig()

// git config --global url.https://${{ secrets.MY_PAT }}@github.com/.insteadOf https://github.com/
await exec('git', ['config', '--global', `url.https://${token}@github.com/.insteadOf`, 'https://github.com/'])
useTrigger({
owner,
repo,
Expand Down

0 comments on commit 860bda5

Please sign in to comment.