build(deps): bump tj-actions/changed-files from 39.2.0 to 39.2.3 #496
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: rust-toolchain | |
on: | |
pull_request: | |
paths: | |
- rust-toolchain | |
- "**Dockerfile" | |
- ".github/workflows/*" | |
- ".github/**/Dockerfile" | |
permissions: | |
contents: read | |
jobs: | |
devcontainer: | |
runs-on: ubuntu-latest | |
container: ghcr.io/linkerd/dev:v40-rust | |
steps: | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033 | |
- run: | | |
VERSION="$(cat rust-toolchain)" | |
if [ "$(cargo --version | cut -d' ' -f2)" != "$VERSION" ]; then | |
echo "::error file=rust-toolchain::rust-toolchain $VERSION does not match devcontainer $(cargo --version)" | |
exit 1 | |
fi | |
workflows: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: linkerd/dev/actions/setup-tools@v40 | |
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
- shell: bash | |
run: | | |
VERSION="$(cat rust-toolchain)" | |
ex=0 | |
while IFS= read -r file ; do | |
while IFS= read -r image ; do | |
if [[ "$image" =~ ^docker://(docker.io/library/)?rust: ]]; then | |
tag="${image##*rust:}" | |
v="${tag%%-*}" | |
if [[ "$v" != "$VERSION" ]]; then | |
echo "::warning file=$file::$file uses incorrect rust version: $v" | |
ex=$((ex + 1)) | |
fi | |
fi | |
done < <(yq '.jobs[] | select(.container) | .container.image // .container' "$file") | |
done < <(find .github/workflows -name '*.yml') | |
exit $ex |