Skip to content

Commit

Permalink
Bump versions of actions to latest releases.
Browse files Browse the repository at this point in the history
Note that this isn't the same as pinning to commits as in specifying
their hashes. Note also that this isn't as ugly either. It's a minor
improvement over "floating" (i.e. major version only) tags/branches.

Change-Id: Id88fe81281885aff41f2625b3b71f945266c8677
Reviewed-on: https://code-review.googlesource.com/c/re2/+/62871
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>
  • Loading branch information
junyer committed Mar 17, 2024
1 parent 5c5c8ed commit db46d1e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
env:
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.8.0
- uses: actions/checkout@v4.1.1
- uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-version: '1.x'
- run: .github/bazel.sh
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Install CMake
run: |
apt update -y
Expand All @@ -35,7 +35,7 @@ jobs:
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Install Abseil, GoogleTest and Benchmark
run: |
brew update
Expand All @@ -50,7 +50,7 @@ jobs:
matrix:
build_shared_libs: [OFF, ON]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Install Abseil, GoogleTest and Benchmark
run: |
vcpkg update
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v4
- uses: actions/checkout@v4.1.1
- name: Install Abseil, GoogleTest and Benchmark
run: |
brew update
Expand All @@ -39,7 +39,7 @@ jobs:
CC: clang-${{ matrix.ver }}
CXX: clang++-${{ matrix.ver }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Install Clang ${{ matrix.ver }}
run: |
# Avoid `Conflicts: python3-lldb-x.y` between packages.
Expand All @@ -65,7 +65,7 @@ jobs:
CC: gcc-${{ matrix.ver }}
CXX: g++-${{ matrix.ver }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Install Abseil, GoogleTest and Benchmark
run: |
sudo apt update -y
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
# Bazel fails if the username is unknown.
USER: runner
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.8.0
- uses: actions/checkout@v4.1.1
- uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-version: '1.x'
- run: app/build.sh
shell: bash
- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@v3.0.1
with:
path: app/deploy
deploy:
Expand All @@ -37,5 +37,5 @@ jobs:
environment: github-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/deploy-pages@v4
- uses: actions/checkout@v4.1.1
- uses: actions/deploy-pages@v4.0.4
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
- uses: actions/checkout@v4.1.1
- uses: actions/github-script@v7.0.1
with:
script: |
const fs = require('fs');
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
# Bazel fails if the username is unknown.
USER: runner
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
# Stash the timestamp for the commit SHA that triggered the workflow.
- run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}"
shell: bash
- uses: bazel-contrib/setup-bazel@0.8.0
- uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-version: '1.x'
- name: Prepare Python ${{ matrix.ver }} environment
Expand All @@ -58,7 +58,7 @@ jobs:
"${PYTHON}" re2_test.py
shell: bash
working-directory: python
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4.3.1
with:
name: ${{ hashFiles('python/google_re2-*.whl') }}
path: python/google_re2-*.whl
Expand All @@ -84,14 +84,14 @@ jobs:
# Otherwise, Python refuses to install the built wheel!
SYSTEM_VERSION_COMPAT: 0
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
# Stash the timestamp for the commit SHA that triggered the workflow.
- run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}"
shell: bash
- uses: bazel-contrib/setup-bazel@0.8.0
- uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-version: '1.x'
- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.ver }}
- name: Prepare Python ${{ matrix.ver }} environment
Expand All @@ -115,7 +115,7 @@ jobs:
python re2_test.py
shell: bash
working-directory: python
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4.3.1
with:
name: ${{ hashFiles('python/google_re2-*.whl') }}
path: python/google_re2-*.whl
Expand All @@ -135,19 +135,19 @@ jobs:
BAZEL_CPU: ${{ matrix.arch.bazel-name }}_windows
PLAT_NAME: ${{ matrix.arch.python-name }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
# Stash the timestamp for the commit SHA that triggered the workflow.
- run: echo "timestamp=$(git log -1 --pretty=%ct)" >> "${GITHUB_ENV}"
shell: bash
- uses: bazel-contrib/setup-bazel@0.8.0
- uses: bazel-contrib/setup-bazel@0.8.1
with:
bazelisk-version: '1.x'
# Lowercase the architecture name for `actions/setup-python`.
- run: |
ARCHITECTURE=${{ matrix.arch.name }}
echo "architecture=${ARCHITECTURE,,}" >> "${GITHUB_ENV}"
shell: bash
- uses: actions/setup-python@v5
- uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.ver }}
architecture: ${{ env.architecture }}
Expand All @@ -171,7 +171,7 @@ jobs:
python re2_test.py
shell: bash
working-directory: python
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4.3.1
with:
name: ${{ hashFiles('python/google_re2-*.whl') }}
path: python/google_re2-*.whl
Expand All @@ -183,11 +183,11 @@ jobs:
- wheel-windows
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
# 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@v5
- uses: actions/setup-python@v5.0.0
with:
python-version: '3.x'
- name: Prepare Python 3.x environment
Expand All @@ -203,7 +203,7 @@ jobs:
python -m build --sdist
shell: bash
working-directory: python
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v4.1.4
with:
path: python
- name: Set build number to ${{ inputs.build }}
Expand All @@ -219,7 +219,7 @@ jobs:
shell: bash
working-directory: python
- if: inputs.build >= 1
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: python/dist

0 comments on commit db46d1e

Please sign in to comment.