Skip to content

Commit

Permalink
Upgrade GitHub Actions to remove dependencies on Node 12/16 (#7459)
Browse files Browse the repository at this point in the history
This is a followup to #7442. I didn't realize there were so many
outdated actions. 🙂

This should update every remaining action with a Node 12/16 dependency.
  • Loading branch information
SpecLad authored Sep 10, 2024
1 parent 2a07b6c commit becbbca
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 32 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
id: server-cache-action
with:
path: /tmp/cvat_cache_server
Expand All @@ -26,7 +26,7 @@ jobs:
${{ runner.os }}-build-server-${{ needs.get-sha.outputs.sha }}
${{ runner.os }}-build-server-
- uses: actions/cache@v3
- uses: actions/cache@v4
id: ui-cache-action
with:
path: /tmp/cvat_cache_ui
Expand All @@ -36,18 +36,18 @@ jobs:
${{ runner.os }}-build-ui-
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Caching CVAT Server
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
cache-from: type=local,src=/tmp/cvat_cache_server
cache-to: type=local,dest=/tmp/cvat_cache_server-new

- name: Caching CVAT UI
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.ui
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -56,7 +56,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -69,4 +69,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Verify that author of comment is collaborator
if: steps.check-author.outputs.allow == ''
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
script: |
core.setFailed('User that send comment with /check command is not collaborator')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:

- name: Deploy
if: github.ref == 'refs/heads/develop'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
ref: ${{ inputs.ref }}

- name: CVAT server. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_server
key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }}

- name: CVAT UI. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_ui
key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Create artifact directories
run: |
Expand All @@ -50,7 +50,7 @@ jobs:
mkdir /tmp/cvat_sdk
- name: CVAT server. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
cache-from: type=local,src=/tmp/cvat_cache_server
context: .
Expand All @@ -59,7 +59,7 @@ jobs:
outputs: type=docker,dest=/tmp/cvat_server/image.tar

- name: CVAT UI. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
cache-from: type=local,src=/tmp/cvat_cache_ui
context: .
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
with:
ref: ${{ inputs.ref }}

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
echo -n "verifying images:"
docker images
- uses: azure/setup-helm@v3
- uses: azure/setup-helm@v4
with:
version: 'v3.9.4'

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ jobs:
run: ./dev/check_changelog_fragments.py

- name: CVAT server. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_server
key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }}

- name: CVAT UI. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_ui
key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Create artifact directories
run: |
Expand All @@ -60,7 +60,7 @@ jobs:
mkdir /tmp/cvat_sdk
- name: CVAT server. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
build-args: |
"COVERAGE_PROCESS_START=.coveragerc"
Expand All @@ -76,7 +76,7 @@ jobs:
yarn run coverage
- name: CVAT UI. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
cache-from: type=local,src=/tmp/cvat_cache_ui
context: .
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'

Expand Down Expand Up @@ -450,6 +450,6 @@ jobs:
name: coverage_results

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
password: ${{ secrets.DOCKERHUB_CI_TOKEN }}

- name: CVAT server. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_server
key: ${{ runner.os }}-build-server-${{ needs.search_cache.outputs.sha }}

- name: CVAT UI. Getting cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_ui
key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }}
Expand All @@ -83,10 +83,10 @@ jobs:
type=raw,value=nightly

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: CVAT server. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
cache-from: type=local,src=/tmp/cvat_cache_server
context: .
Expand All @@ -96,7 +96,7 @@ jobs:
labels: ${{ steps.meta-server.outputs.labels }}

- name: CVAT UI. Build and push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
cache-from: type=local,src=/tmp/cvat_cache_ui
context: .
Expand All @@ -111,18 +111,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'

- name: Getting CVAT UI cache from the default branch
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/cvat_cache_ui
key: ${{ runner.os }}-build-ui-${{ needs.search_cache.outputs.sha }}

- name: Building CVAT UI image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.ui
Expand Down

0 comments on commit becbbca

Please sign in to comment.