mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-17 13:23:05 -05:00
git-artifacts(build-arm64): build artifacts using the intended Git revision
We cannot just check out the current revision: The user might have overridden `REPOSITORY` and `REF` via the workflow dispatch. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
14
.github/workflows/git-artifacts.yml
vendored
14
.github/workflows/git-artifacts.yml
vendored
@@ -303,8 +303,20 @@ jobs:
|
||||
mkdir -p "$HOME" &&
|
||||
git config --global user.name "$USER_NAME" &&
|
||||
git config --global user.email "$USER_EMAIL"
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download bundle-artifacts
|
||||
if: env.SKIP != 'true'
|
||||
uses: actions/download-artifact@v1
|
||||
with:
|
||||
name: bundle-artifacts
|
||||
path: bundle-artifacts
|
||||
- name: Check out git/git
|
||||
if: env.SKIP != 'true'
|
||||
shell: bash
|
||||
run: |
|
||||
git -c init.defaultBranch=main init &&
|
||||
git remote add -f origin https://github.com/git-for-windows/git &&
|
||||
git fetch --tags bundle-artifacts/git.bundle $(cat bundle-artifacts/next_version) &&
|
||||
git reset --hard $(cat bundle-artifacts/next_version)
|
||||
- name: initialize vcpkg
|
||||
if: env.SKIP != 'true'
|
||||
uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user