Skip to content

Commit 5c75234

Browse files
committed
ci: Only sync channel from upstream
1 parent bbf8657 commit 5c75234

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/sync-flake-lock.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
- name: Sync flake.lock and rust-toolchain.toml from upstream
2727
run: |
2828
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest/flake.lock -o flake.lock
29-
curl https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest/rust-toolchain.toml -o rust-toolchain.toml
29+
UPSTREAM=https://raw.githubusercontent.com/obeli-sk/obelisk/refs/heads/latest/rust-toolchain.toml
30+
CHANNEL=$(curl -fsSL "$UPSTREAM" | grep '^channel =')
31+
sed -i "s/^channel =.*/$CHANNEL/" rust-toolchain.toml
3032
3133
- uses: nixbuild/nix-quick-install-action@v34
3234
with:

0 commit comments

Comments
 (0)