2 Commits

Author SHA1 Message Date
41d5bd5571 Updating action for git checkout v6 2026-01-18 12:28:46 +01:00
Renovate Bot
a58e064f7c Update dependency @actions/core to v2.0.2 2026-01-18 10:48:24 +00:00
5 changed files with 53 additions and 80 deletions

View File

@@ -18,5 +18,5 @@ inputs:
required: false
runs:
using: 'node20'
using: 'node24'
main: 'dist/app.js'

29
app.ts
View File

@@ -217,36 +217,9 @@ const rebaseBranch = async (rebaseAction: RebaseAction): Promise<RebaseAction &
return { ...rebaseAction, success: doneWithSuccess };
}
const setupCIToken = async () => {
writeConsole("Overriding git repository auth with CI_TOKEN")
const remoteUrl = await runGitCommand([
"remote",
"get-url",
"origin"
]);
const httpLessUrl = remoteUrl.trim().replace(/https?:\/\//, "");
const newUrl = `https://MilaBot:${ CI_TOKEN }@${ httpLessUrl }.git`;
await runGitCommand([
"remote",
"set-url",
"origin",
newUrl
]);
await runGitCommand([
"config",
"--local",
"--unset",
`http.https://${ GITHUB_SERVER_URL.replace(/https?:\/\//, "") }/.extraheader`
]);
}
const setupAutoRebaseGit = async () => {
if (CI_TOKEN) {
await setupCIToken();
writeConsole("Found CI_TOKEN, don't forget to set it up in the checkout")
} else {
writeConsole("Couldn't find a CI_TOKEN. Using the gitea ghost.", LogLevel.WARNING);
}

68
dist/app.js vendored

File diff suppressed because one or more lines are too long

32
pnpm-lock.yaml generated
View File

@@ -10,7 +10,7 @@ importers:
dependencies:
'@actions/core':
specifier: ^2.0.0
version: 2.0.0
version: 2.0.2
'@skydust/toolkit':
specifier: ^1.3.2
version: 1.3.3
@@ -33,17 +33,17 @@ importers:
packages:
'@actions/core@2.0.0':
resolution: {integrity: sha512-iGW52/zqhPUFnYl0s1ioXfJu86LGs7b+GYuO38JMPpsh14FQrNj3n2JBpC+vZ2CFS4lERQyn5koLDopY+6V/PQ==}
'@actions/core@2.0.2':
resolution: {integrity: sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==}
'@actions/exec@1.1.1':
resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==}
'@actions/exec@2.0.0':
resolution: {integrity: sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==}
'@actions/http-client@3.0.0':
resolution: {integrity: sha512-1s3tXAfVMSz9a4ZEBkXXRQD4QhY3+GAsWSbaYpeknPOKEeyRiU3lH+bHiLMZdo2x/fIeQ/hscL1wCkDLVM2DZQ==}
'@actions/http-client@3.0.1':
resolution: {integrity: sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==}
'@actions/io@1.1.3':
resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==}
'@actions/io@2.0.0':
resolution: {integrity: sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==}
'@emnapi/core@1.8.1':
resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}
@@ -427,21 +427,21 @@ packages:
snapshots:
'@actions/core@2.0.0':
'@actions/core@2.0.2':
dependencies:
'@actions/exec': 1.1.1
'@actions/http-client': 3.0.0
'@actions/exec': 2.0.0
'@actions/http-client': 3.0.1
'@actions/exec@1.1.1':
'@actions/exec@2.0.0':
dependencies:
'@actions/io': 1.1.3
'@actions/io': 2.0.0
'@actions/http-client@3.0.0':
'@actions/http-client@3.0.1':
dependencies:
tunnel: 0.0.6
undici: 5.29.0
'@actions/io@1.1.3': {}
'@actions/io@2.0.0': {}
'@emnapi/core@1.8.1':
dependencies:

View File

@@ -6,7 +6,7 @@
"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"module": "nodenext",
"moduleResolution": "nodenext",
"resolveJsonModule": true,
"isolatedModules": true