From 779bec5fcfa414365025d02a71985286bc6464d9 Mon Sep 17 00:00:00 2001 From: rxu Date: Mon, 28 Apr 2025 23:28:05 +0700 Subject: [PATCH] [ticket/17504] Run apt-get update on runner lever rather than in bash scripts PHPBB-17504 --- .github/setup-exiftool.sh | 1 - .github/setup-sphinx.sh | 1 - .github/setup-unbuffer.sh | 1 - .github/setup-webserver.sh | 1 - .github/workflows/tests.yml | 16 ++++++++++++++++ 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/setup-exiftool.sh b/.github/setup-exiftool.sh index 283a15906f..082e621c7b 100755 --- a/.github/setup-exiftool.sh +++ b/.github/setup-exiftool.sh @@ -10,5 +10,4 @@ # set -e -sudo apt-get update --allow-releaseinfo-change sudo apt-get install -y parallel libimage-exiftool-perl diff --git a/.github/setup-sphinx.sh b/.github/setup-sphinx.sh index 523574a6ab..bf7f1bc91b 100755 --- a/.github/setup-sphinx.sh +++ b/.github/setup-sphinx.sh @@ -11,7 +11,6 @@ set -e set -x -sudo apt-get update --allow-releaseinfo-change sudo apt-get install -q -y sphinxsearch DIR=$(dirname "$0") diff --git a/.github/setup-unbuffer.sh b/.github/setup-unbuffer.sh index 879845b2a9..4828a88997 100755 --- a/.github/setup-unbuffer.sh +++ b/.github/setup-unbuffer.sh @@ -10,5 +10,4 @@ # set -e -sudo apt-get update --allow-releaseinfo-change sudo apt-get install -y expect-dev diff --git a/.github/setup-webserver.sh b/.github/setup-webserver.sh index 0d52b7d0e0..7232807e3e 100755 --- a/.github/setup-webserver.sh +++ b/.github/setup-webserver.sh @@ -11,7 +11,6 @@ set -e set -x -sudo apt-get update --allow-releaseinfo-change sudo apt-get install -y nginx coreutils sudo service nginx stop diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8def02d28e..e070cabb92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,10 @@ jobs: name: PHP ${{ matrix.php }} - ${{ matrix.db }} steps: + - name: Update Ubuntu package lists + run: | + sudo apt-get update -y --allow-releaseinfo-change + - name: Checkout repository uses: actions/checkout@v4 with: @@ -158,6 +162,10 @@ jobs: - 6379:6379 steps: + - name: Update Ubuntu package lists + run: | + sudo apt-get update -y --allow-releaseinfo-change + - name: Checkout repository uses: actions/checkout@v4 @@ -299,6 +307,10 @@ jobs: - 6379:6379 steps: + - name: Update Ubuntu package lists + run: | + sudo apt-get update -y --allow-releaseinfo-change + - name: Checkout repository uses: actions/checkout@v4 @@ -397,6 +409,10 @@ jobs: steps: + - name: Update Ubuntu package lists + run: | + sudo apt-get update -y --allow-releaseinfo-change + - name: Checkout repository uses: actions/checkout@v4