Skip to content

Commit 14bcad7

Browse files
committed
fixup! Add a workflow definition to upload Git for Windows' snapshots
1 parent 6a87313 commit 14bcad7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/upload-snapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
console.log(callGit([
181181
'config',
182182
'--global',
183-
`http.https://${{ github.server_url }}/${process.env.OWNER}/${process.env.SNAPSHOT_REPO}.extraHeader`,
183+
`http.https://${{ github.server_url }}/${process.env.OWNER}/${process.env.SNAPSHOTS_REPO}.extraHeader`,
184184
header
185185
]))
186186
return Buffer.from(header.replace(/^Authorization: Basic /, ''), 'base64').toString('utf-8').replace(/^PAT:/, '')
@@ -198,15 +198,15 @@ jobs:
198198
console,
199199
token,
200200
'GET',
201-
`/repos/${process.env.OWNER}/${process.env.SNAPSHOT_REPO}/compare/${sha}...HEAD`
201+
`/repos/${process.env.OWNER}/${process.env.SNAPSHOTS_REPO}/compare/${sha}...HEAD`
202202
)
203203
if (ahead_by > 0) throw new Error(`The snapshots repository is ahead of ${sha}!`)
204204
if (behind_by > 0) {
205205
await githubApiRequest(
206206
console,
207207
token,
208208
'PATCH',
209-
`/repos/${process.env.OWNER}/${process.env.SNAPSHOT_REPO}/git/refs/heads/main`, {
209+
`/repos/${process.env.OWNER}/${process.env.SNAPSHOTS_REPO}/git/refs/heads/main`, {
210210
sha,
211211
force: false // require fast-forward
212212
}

0 commit comments

Comments
 (0)