Update GitHub Actions. (#1635)

Bump GitHub Actions from v2 to v4.
pull/1633/head^2
Tomas Pohanka 2024-02-21 09:08:16 +01:00 zatwierdzone przez GitHub
rodzic b3c32321a3
commit b057d5941e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -15,7 +15,7 @@ jobs:
steps: steps:
- name: Checkout the changes - name: Checkout the changes
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run quickstart for a small area - name: Run quickstart for a small area
env: env:
@ -27,7 +27,7 @@ jobs:
./quickstart.sh $area ./quickstart.sh $area
- name: Save quickstart.log - name: Save quickstart.log
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: quickstart.log name: quickstart.log
path: quickstart.log path: quickstart.log

Wyświetl plik

@ -45,7 +45,7 @@ jobs:
- name: Cache test data download - name: Cache test data download
id: cache-testdata id: cache-testdata
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: ci_cache path: ci_cache
key: "v2-${{ env.TEST_DATA_URL }}" 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" curl --silent --show-error --location --output ci_cache/perf-test-areas-latest.osm.pbf "$TEST_DATA_URL"
- name: Get code - name: Get code
uses: actions/checkout@v2 uses: actions/checkout@v4
with: with:
# Fetch the last two commits in case this is a PR, # Fetch the last two commits in case this is a PR,
# and we need to profile the base branch first # 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) # 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}}') REV_HASH=$(git cat-file -p $REV_HASH | awk 'NR > 1 {if(/^parent/){print $2; exit}}')
fi fi
echo "::set-output name=hash::$REV_HASH" echo "hash=$REV_HASH" >> $GITHUB_OUTPUT
- name: Set up caching for the performance results - name: Set up caching for the performance results
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: perf_cache path: perf_cache
# If profiling result cache has incompatible format, increase this "v" number # If profiling result cache has incompatible format, increase this "v" number
@ -287,14 +287,14 @@ jobs:
fi fi
- name: Save performance artifacts - name: Save performance artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: performance_results name: performance_results
path: artifacts path: artifacts
- name: Save PR message artifact - name: Save PR message artifact
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v4
with: with:
name: pr_message name: pr_message
path: pr_message path: pr_message

Wyświetl plik

@ -15,7 +15,7 @@ jobs:
steps: steps:
- name: Checkout the changes - name: Checkout the changes
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run unit tests - name: Run unit tests
run: | run: |