Skip to content

Commit 9fd6e90

Browse files
committed
fixup! Add a workflow definition to upload Git for Windows' snapshots
1 parent 585458a commit 9fd6e90

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/upload-snapshot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
console.log(callGit([
182182
'config',
183183
'--global',
184-
`http.https://${{ github.server_url }}/${process.env.OWNER}/${process.env.SNAPSHOTS_REPO}.extraHeader`,
184+
`http.${{ github.server_url }}/${process.env.OWNER}/${process.env.SNAPSHOTS_REPO}.extraHeader`,
185185
header
186186
]))
187187
return Buffer.from(header.replace(/^Authorization: Basic /, ''), 'base64').toString('utf-8').replace(/^PAT:/, '')
@@ -223,14 +223,14 @@ jobs:
223223
--title "${{ steps.bundle-artifacts.outputs.date }}" \
224224
${{ steps.bundle-artifacts.outputs.ver }} \
225225
${{ steps.download-artifacts.outputs.paths }} &&
226-
echo "::notice::Uploaded snapshot artifacts to https://${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/tag/${{ steps.bundle-artifacts.outputs.ver }}"
226+
echo "::notice::Uploaded snapshot artifacts to ${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/tag/${{ steps.bundle-artifacts.outputs.ver }}"
227227
- name: update check-run
228228
if: env.CREATE_CHECK_RUN != 'false'
229229
uses: ./.github/actions/check-run-action
230230
with:
231231
app-id: ${{ secrets.GH_APP_ID }}
232232
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
233-
append-text: 'Created release at https://${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/tag/${{ steps.bundle-artifacts.outputs.ver }}'
233+
append-text: 'Created release at ${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/tag/${{ steps.bundle-artifacts.outputs.ver }}'
234234
- name: clone gh-pages
235235
uses: actions/checkout@v4
236236
with:
@@ -242,7 +242,7 @@ jobs:
242242
uses: actions/github-script@v7
243243
with:
244244
script: |
245-
const urlPrefix = `https://${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/download/${{ steps.bundle-artifacts.outputs.ver }}/`
245+
const urlPrefix = `${{ github.server_url }}/${{ env.OWNER }}/${{ env.SNAPSHOTS_REPO }}/releases/download/${{ steps.bundle-artifacts.outputs.ver }}/`
246246
process.chdir('gh-pages')
247247
const main = require('./add-entry')
248248
await main(

0 commit comments

Comments
 (0)