Replace undefined std::Container<const T> with std::Container<T> #565
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "format" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Mount bazel cache | |
uses: actions/cache@v3 | |
with: | |
path: "~/.cache/bazel" # See https://docs.bazel.build/versions/master/output_directories.html | |
key: format-${{ hashFiles('**/*_deps.bzl', '**/*.bazelrc') }} | |
restore-keys: | | |
format | |
- name: Run format.sh | |
run: ./format.sh | |
- name: Check formatting diff | |
run: | | |
CHANGED_FILES="$(git diff-index --name-only HEAD --)" | |
if [[ -z "${CHANGED_FILES}" ]]; then | |
echo "Success: no formatting changes needed." | |
exit 0 | |
fi | |
echo "Found formatting changes in the following files:" | |
echo "${CHANGED_FILES}" | |
echo "" | |
echo "Please run format.sh to apply the changes." | |
exit 1 |