From 62a09368fbc14a969df518e58474ce6ba231d002 Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Mon, 29 Jan 2024 12:26:43 +0000 Subject: [PATCH] Bump versions of actions to address warnings. Change-Id: Ie5e78296c9f2a937fb2bee1be1126113690e76d9 Reviewed-on: https://code-review.googlesource.com/c/re2/+/62510 Reviewed-by: Paul Wankadia Reviewed-by: Alex Chernyakhovsky --- .github/workflows/ci-bazel.yml | 2 +- .github/workflows/ci-cmake.yml | 6 +++--- .github/workflows/ci.yml | 6 +++--- .github/workflows/pr.yml | 4 ++-- .github/workflows/python.yml | 22 +++++++++++----------- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci-bazel.yml b/.github/workflows/ci-bazel.yml index d203d2d42..8e14fce01 100644 --- a/.github/workflows/ci-bazel.yml +++ b/.github/workflows/ci-bazel.yml @@ -14,7 +14,7 @@ jobs: env: BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # TODO(junyer): Use `v2` whenever a new release is tagged. - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51 - run: .github/bazel.sh diff --git a/.github/workflows/ci-cmake.yml b/.github/workflows/ci-cmake.yml index 2287779ff..a49fd53b1 100644 --- a/.github/workflows/ci-cmake.yml +++ b/.github/workflows/ci-cmake.yml @@ -15,7 +15,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install CMake run: | apt update -y @@ -35,7 +35,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | brew update @@ -50,7 +50,7 @@ jobs: matrix: build_shared_libs: [OFF, ON] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | vcpkg update diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41a892d35..445da78d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: # (The other two flags are the default provided for CXXFLAGS in Makefile.) CXXFLAGS: -O3 -g -std=c++${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | brew update @@ -39,7 +39,7 @@ jobs: CC: clang-${{ matrix.ver }} CXX: clang++-${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Clang ${{ matrix.ver }} run: | # Avoid `Conflicts: python3-lldb-x.y` between packages. @@ -65,7 +65,7 @@ jobs: CC: gcc-${{ matrix.ver }} CXX: g++-${{ matrix.ver }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Abseil, GoogleTest and Benchmark run: | sudo apt update -y diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e3f94fa06..267dd5d7d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -15,8 +15,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/github-script@v6 + - uses: actions/checkout@v4 + - uses: actions/github-script@v7 with: script: | const fs = require('fs'); diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 0767cc5a8..196740ca2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -31,7 +31,7 @@ jobs: # Bazel fails if the username is unknown. USER: runner steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash @@ -57,7 +57,7 @@ jobs: "${PYTHON}" re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl @@ -81,13 +81,13 @@ jobs: # Otherwise, Python refuses to install the built wheel! SYSTEM_VERSION_COMPAT: 0 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash # TODO(junyer): Use `v2` whenever a new release is tagged. - uses: bazelbuild/setup-bazelisk@6244971d4f7ba9aca943c2f3ede2bbd813fcca51 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.ver }} - name: Prepare Python ${{ matrix.ver }} environment @@ -111,7 +111,7 @@ jobs: python re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl @@ -131,7 +131,7 @@ jobs: BAZEL_CPU: ${{ matrix.arch.bazel-name }}_windows PLAT_NAME: ${{ matrix.arch.python-name }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash @@ -146,7 +146,7 @@ jobs: ARCHITECTURE=${{ matrix.arch.name }} echo "architecture=${ARCHITECTURE,,}" >> "${GITHUB_ENV}" shell: bash - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.ver }} architecture: ${{ env.architecture }} @@ -170,7 +170,7 @@ jobs: python re2_test.py shell: bash working-directory: python - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ hashFiles('python/google_re2-*.whl') }} path: python/google_re2-*.whl @@ -182,11 +182,11 @@ jobs: - wheel-windows runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Stash the timestamp for the commit SHA that triggered the workflow. - run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}" shell: bash - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - name: Prepare Python 3.x environment @@ -202,7 +202,7 @@ jobs: python -m build --sdist shell: bash working-directory: python - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: path: python - name: Set build number to ${{ inputs.build }}