diff --git a/.github/workflows/release-script.yml b/.github/workflows/release-script.yml index cd79c9b68..09c80778b 100644 --- a/.github/workflows/release-script.yml +++ b/.github/workflows/release-script.yml @@ -17,4 +17,7 @@ jobs: with: commit_message: "Update installer script" commit_user_name: "GitHub Actions" - branch: prerelease \ No newline at end of file + branch: prerelease + # assemble_installer.py already does a fetch and checkout + skip_fetch: true + skip_checkout: true diff --git a/assemble_installer.py b/assemble_installer.py index ff9d40b9d..5b2608f5b 100644 --- a/assemble_installer.py +++ b/assemble_installer.py @@ -24,5 +24,8 @@ else: sys.exit(0) +subprocess.run("git fetch origin prerelease", check=True) +subprocess.run("git checkout -b prerelease origin/prerelease", check=True) + for installer_url, system in installers: shutil.copy(f"{installer_url}/bin/nix-installer", f"nix-installer-{system}")