Skip to content

Commit cfff31b

Browse files
committed
Hard code branch name
1 parent d852c49 commit cfff31b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/upload-artifacts.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Wait for Hydra Build
22

33
on:
44
push:
5+
branches:
6+
- main
57
tags:
68
- "nix-tools-*"
9+
pull_request:
710

811
env:
912
FLAKE_REF: github:${{ github.repository }}?ref=${{ github.head_ref || github.ref }}
@@ -16,8 +19,6 @@ jobs:
1619
steps:
1720
- name: Checkout
1821
uses: actions/checkout@v4
19-
with:
20-
ref: ${{ github.ref_name }}
2122

2223
- name: Install Nix with good defaults
2324
uses: input-output-hk/install-nix-action@v20
@@ -57,6 +58,8 @@ jobs:
5758
- name: "Compute nix-tools-static.nix"
5859
if: startsWith(github.ref, 'refs/tags/')
5960
run: |
61+
git fetch --all
62+
git switch --force static-nix-tools
6063
(
6164
echo "pkgs: let baseurl = \"https://github.com/input-output-hk/haskell.nix/releases/download/${GITHUB_REF_NAME}/\"; in {"
6265
for arch in aarch64-darwin x86_64-darwin aarch64-linux x86_64-linux; do
@@ -76,7 +79,7 @@ jobs:
7679
run: |
7780
git add nix-tools-static.nix
7881
git commit -m "update nix-tools-static.nix"
79-
git push
82+
git push origin static-nix-tools
8083
8184
- name: Release
8285
uses: input-output-hk/action-gh-release@v1

0 commit comments

Comments
 (0)