From d2aa31e8733d433f63c08afea4fdbb645d99dfbd Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Thu, 15 Feb 2024 00:45:34 +0100 Subject: [PATCH] Update all github actions we depend on --- .github/workflows/ci.yaml | 52 +++++++++++----------- .github/workflows/ci_tools_map_syncer.yaml | 4 +- .github/workflows/sync_map.yaml | 10 ++--- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bc1e09a..9a5e3cb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,19 +22,19 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: pip cache-dependency-path: scripts/py/requirements.txt - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18 cache: npm cache-dependency-path: scripts/js/package-lock.json - - uses: actions/cache@v3 + - uses: actions/cache@v4 if: ${{ !env.ACT }} with: path: .maps-cache @@ -48,7 +48,7 @@ jobs: - name: Test run: source .envrc && make -j $(nproc) test - name: Upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: gen-artifacts path: gen @@ -57,9 +57,9 @@ jobs: needs: build-and-test if: vars.MAPS_METADATA_BUCKET_NAME && (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gen-artifacts path: gen @@ -86,24 +86,24 @@ jobs: needs: build-and-test if: vars.ENABLE_BYAR_CHOBBY_PUSH && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gen-artifacts path: gen - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: pip cache-dependency-path: scripts/py/requirements.txt - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18 cache: npm cache-dependency-path: scripts/js/package-lock.json - - uses: actions/cache@v3 + - uses: actions/cache@v4 if: ${{ !env.ACT }} with: path: .maps-cache @@ -113,7 +113,7 @@ jobs: - name: Install dependencies run: ./scripts/install.sh - name: Checkout BYAR-Chobby - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/BYAR-Chobby path: BYAR-Chobby @@ -148,12 +148,12 @@ jobs: if: vars.ENABLE_SPADS_CONFIG_PUSH && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch') steps: - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gen-artifacts path: gen - name: Checkout SPADS Config - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository_owner }}/spads_config_bar path: spads_config_bar @@ -185,24 +185,24 @@ jobs: needs: build-and-test if: vars.WEBFLOW_COLLECTION_ID && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gen-artifacts path: gen - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: pip cache-dependency-path: scripts/py/requirements.txt - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18 cache: npm cache-dependency-path: scripts/js/package-lock.json - - uses: actions/cache@v3 + - uses: actions/cache@v4 if: ${{ !env.ACT }} with: path: .maps-cache @@ -212,7 +212,7 @@ jobs: - name: Install dependencies run: ./scripts/install.sh - name: Push to website - uses: nick-fields/retry@v2 + uses: nick-fields/retry@v3 with: timeout_minutes: 10 max_attempts: 3 @@ -231,19 +231,19 @@ jobs: contents: read id-token: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: gen-artifacts path: gen - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: pip cache-dependency-path: scripts/py/requirements.txt - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18 cache: npm @@ -252,7 +252,7 @@ jobs: run: ./scripts/install.sh - name: Authenticate to Google Cloud id: auth - uses: google-github-actions/auth@v1 + uses: google-github-actions/auth@v2 with: workload_identity_provider: projects/187238959541/locations/global/workloadIdentityPools/github-actions/providers/github service_account: gdrive-owner@rowy-1f075.iam.gserviceaccount.com diff --git a/.github/workflows/ci_tools_map_syncer.yaml b/.github/workflows/ci_tools_map_syncer.yaml index 34e2033..a0087fc 100644 --- a/.github/workflows/ci_tools_map_syncer.yaml +++ b/.github/workflows/ci_tools_map_syncer.yaml @@ -20,9 +20,9 @@ jobs: run: working-directory: tools/map_syncer steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: pip diff --git a/.github/workflows/sync_map.yaml b/.github/workflows/sync_map.yaml index 498316c..f1fe82a 100644 --- a/.github/workflows/sync_map.yaml +++ b/.github/workflows/sync_map.yaml @@ -43,16 +43,16 @@ jobs: else echo "pr_title=Update map ${to_sync} from rowy" >> $GITHUB_OUTPUT fi - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ssh-key: ${{ secrets.SSH_SELF_DEPLOY_KEY }} - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.11 cache: pip cache-dependency-path: scripts/py/requirements.txt - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 18.18 cache: npm @@ -61,7 +61,7 @@ jobs: run: ./scripts/install.sh - name: Authenticate to Google Cloud id: auth - uses: google-github-actions/auth@v1 + uses: google-github-actions/auth@v2 with: workload_identity_provider: projects/187238959541/locations/global/workloadIdentityPools/github-actions/providers/github service_account: github-actions@rowy-1f075.iam.gserviceaccount.com @@ -71,7 +71,7 @@ jobs: make types ts-node scripts/js/src/update_from_rowy.ts map_list.yaml ${{ steps.set_properties.outputs.map_to_sync }} - name: Commit and create or update PR - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: commit-message: Update map_list.yaml with new map data branch: sync-map-${{ steps.set_properties.outputs.map_to_sync }}