Kaynağa Gözat

scripts: don't refresh the pacman repository on Arch (#12194)

Fixes #12186

Signed-off-by: Chris Palmer <[email protected]>
Co-authored-by: Chris Palmer <[email protected]>
Chris Palmer 1 yıl önce
ebeveyn
işleme
59936e6d4a
2 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5 0
      .github/workflows/installer.yml
  2. 0 1
      scripts/installer.sh

+ 5 - 0
.github/workflows/installer.yml

@@ -67,6 +67,11 @@ jobs:
       image: ${{ matrix.image }}
       options: --user root
     steps:
+    - name: install dependencies (pacman)
+      # Refresh the package databases to ensure that the tailscale package is
+      # defined.
+      run: pacman -Sy
+      if: contains(matrix.image, 'archlinux')
     - name: install dependencies (yum)
       # tar and gzip are needed by the actions/checkout below.
       run: yum install -y --allowerasing tar gzip ${{ matrix.deps }}

+ 0 - 1
scripts/installer.sh

@@ -513,7 +513,6 @@ main() {
 			;;
 		pacman)
 			set -x
-			$SUDO pacman -Sy
 			$SUDO pacman -S tailscale --noconfirm
 			$SUDO systemctl enable --now tailscaled
 			set +x