From b057d5941eefcf9f15685f2709984ffcf5d5240e Mon Sep 17 00:00:00 2001 From: Tomas Pohanka Date: Wed, 21 Feb 2024 09:08:16 +0100 Subject: [PATCH] Update GitHub Actions. (#1635) Bump GitHub Actions from v2 to v4. --- .github/workflows/integrity.yml | 4 ++-- .github/workflows/performance.yml | 12 ++++++------ .github/workflows/sql-tests.yml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integrity.yml b/.github/workflows/integrity.yml index 5ba95030..c46aa11c 100644 --- a/.github/workflows/integrity.yml +++ b/.github/workflows/integrity.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout the changes - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run quickstart for a small area env: @@ -27,7 +27,7 @@ jobs: ./quickstart.sh $area - name: Save quickstart.log - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: quickstart.log path: quickstart.log diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index 3266dbda..6b8649d4 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -45,7 +45,7 @@ jobs: - name: Cache test data download id: cache-testdata - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ci_cache key: "v2-${{ env.TEST_DATA_URL }}" @@ -58,7 +58,7 @@ jobs: curl --silent --show-error --location --output ci_cache/perf-test-areas-latest.osm.pbf "$TEST_DATA_URL" - name: Get code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: # Fetch the last two commits in case this is a PR, # and we need to profile the base branch first @@ -76,10 +76,10 @@ jobs: # Take the first parent of the grafted commit (cannot use HEAD^1 with shallow clones) REV_HASH=$(git cat-file -p $REV_HASH | awk 'NR > 1 {if(/^parent/){print $2; exit}}') fi - echo "::set-output name=hash::$REV_HASH" + echo "hash=$REV_HASH" >> $GITHUB_OUTPUT - name: Set up caching for the performance results - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: perf_cache # If profiling result cache has incompatible format, increase this "v" number @@ -287,14 +287,14 @@ jobs: fi - name: Save performance artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: performance_results path: artifacts - name: Save PR message artifact if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: pr_message path: pr_message diff --git a/.github/workflows/sql-tests.yml b/.github/workflows/sql-tests.yml index b301f055..895d6b88 100644 --- a/.github/workflows/sql-tests.yml +++ b/.github/workflows/sql-tests.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout the changes - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run unit tests run: |