Skip to content

Commit b1a5604

Browse files
committed
fix: Correct YAML indentation in workflow run blocks
1 parent 5803767 commit b1a5604

File tree

5 files changed

+63
-61
lines changed

5 files changed

+63
-61
lines changed

.github/workflows/changelog-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
3636
git config --local user.name "github-actions[bot]"
3737
38-
- name: Sync single release
39-
run: |
40-
echo "test"
38+
- name: Sync single release
39+
run: |
40+
echo "test"
4141
4242
- name: Sync all releases
4343
if: github.event_name == 'workflow_dispatch' && github.event.inputs.sync_all == 'true'

.github/workflows/enhanced-ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,37 +124,39 @@ jobs:
124124
run: |
125125
echo "🔧 Checking formatting..."
126126
if ! cargo fmt --all -- --check; then
127-
echo "Formatting issues found, applying fixes..."
128-
cargo fmt --all
129-
echo "format_fixed=true" >> $GITHUB_OUTPUT
127+
echo "Formatting issues found, applying fixes..."
128+
cargo fmt --all
129+
echo "format_fixed=true" >> $GITHUB_OUTPUT
130130
else
131-
echo "✅ Formatting is correct"
132-
echo "format_fixed=false" >> $GITHUB_OUTPUT
131+
echo "✅ Formatting is correct"
132+
echo "format_fixed=false" >> $GITHUB_OUTPUT
133133
fi
134134
135135
- name: Check and auto-fix clippy issues
136136
id: clippy-check
137137
run: |
138138
echo "🔧 Running clippy..."
139139
if ! cargo clippy --all-targets --all-features -- -D warnings; then
140-
echo "Clippy issues found, attempting fixes..."
141-
cargo clippy --all-targets --all-features --fix --allow-dirty
142-
echo "clippy_fixed=true" >> $GITHUB_OUTPUT
140+
echo "Clippy issues found, attempting fixes..."
141+
cargo clippy --all-targets --all-features --fix --allow-dirty
142+
echo "clippy_fixed=true" >> $GITHUB_OUTPUT
143143
else
144-
echo "✅ Clippy checks passed"
145-
echo "clippy_fixed=false" >> $GITHUB_OUTPUT
144+
echo "✅ Clippy checks passed"
145+
echo "clippy_fixed=false" >> $GITHUB_OUTPUT
146146
fi
147147
148148
- name: Check workspace integrity
149149
run: cargo check --workspace --all-targets
150150

151151
- name: Commit fixes if applied
152-
if: steps.format-check.outputs.format_fixed == 'true' || steps.clippy-check.outputs.clippy_fixed == 'true'
152+
if: steps.format-check.outputs.format_fixed == 'true' || steps.clippy-check.outputs.clippy_fixed == 'true'
153153
run: |
154154
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
155155
git config --local user.name "github-actions[bot]"
156156
157-
if ! git diff --quiet; then
157+
158+
159+
if ! git diff --quiet; then
158160
git add .
159161

160162
COMMIT_MSG="auto-fix: apply code quality fixes"

.github/workflows/optimized-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ preflight:
4848

4949

5050

51-
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
51+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
5252
id: changes
5353
with:
5454
filters: |

.github/workflows/performance.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -29,45 +29,45 @@ jobs:
2929
name: Performance Benchmark
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
33-
34-
35-
36-
- name: Install Rust
37-
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6
38-
39-
- name: Install cargo-criterion
40-
run: cargo install cargo-criterion
41-
42-
- name: Cache cargo registry
43-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
44-
with:
45-
path: |
46-
~/.cargo/registry
47-
~/.cargo/git
48-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
49-
50-
- name: Cache target
51-
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
52-
with:
53-
path: target
54-
key: ${{ runner.os }}-bench-target-${{ hashFiles('**/Cargo.lock') }}
55-
56-
- name: Run criterion benchmarks
57-
run: |
58-
echo "Checking for benchmark files..."
59-
find . -name "*.rs" -path "*/benches/*" -ls || echo "No benchmark files found in benches/"
60-
61-
# Check if we have criterion benchmarks defined in Cargo.toml
62-
if find . -name "Cargo.toml" -exec grep -l "criterion" {} \; | head -1; then
63-
echo "Found criterion in dependencies, running benchmarks..."
64-
# Run benchmarks for each crate that has them
65-
for crate_dir in crates/*/; do
66-
if [ -f "$crate_dir/Cargo.toml" ] && grep -q "criterion" "$crate_dir/Cargo.toml"; then
67-
echo "Running benchmarks for $crate_dir"
68-
(cd "$crate_dir" && cargo bench) || echo "Benchmarks failed or not available for $crate_dir"
69-
fi
70-
done
32+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
33+
34+
35+
36+
- name: Install Rust
37+
uses: dtolnay/rust-toolchain@5d458579430fc14a04a08a1e7d3694f545e91ce6
38+
39+
- name: Install cargo-criterion
40+
run: cargo install cargo-criterion
41+
42+
- name: Cache cargo registry
43+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
44+
with:
45+
path: |
46+
~/.cargo/registry
47+
~/.cargo/git
48+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
49+
50+
- name: Cache target
51+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
52+
with:
53+
path: target
54+
key: ${{ runner.os }}-bench-target-${{ hashFiles('**/Cargo.lock') }}
55+
56+
- name: Run criterion benchmarks
57+
run: |
58+
echo "Checking for benchmark files..."
59+
find . -name "*.rs" -path "*/benches/*" -ls || echo "No benchmark files found in benches/"
60+
61+
# Check if we have criterion benchmarks defined in Cargo.toml
62+
if find . -name "Cargo.toml" -exec grep -l "criterion" {} \; | head -1; then
63+
echo "Found criterion in dependencies, running benchmarks..."
64+
# Run benchmarks for each crate that has them
65+
for crate_dir in crates/*/; do
66+
if [ -f "$crate_dir/Cargo.toml" ] && grep -q "criterion" "$crate_dir/Cargo.toml"; then
67+
echo "Running benchmarks for $crate_dir"
68+
(cd "$crate_dir" && cargo bench) || echo "Benchmarks failed or not available for $crate_dir"
69+
fi
70+
done
7171
else
7272
echo "No criterion benchmarks configured, running cargo test --benches..."
7373
cargo test --benches --workspace || echo "No bench tests available"

.github/workflows/version-sync.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ version-sync:
171171
- uses: ./.github/actions/setup-rust
172172

173173
- name: Apply version synchronization
174-
id: sync
175-
env:
176-
TARGET_VERSION: ${{ needs.analyze-versions.outputs.target_version }}
177-
run: |
178-
TARGET_VERSION="${{ needs.analyze-versions.outputs.target_version }}"
179-
SYNC_STRATEGY="${{ needs.analyze-versions.outputs.sync_strategy }}"
174+
id: sync
175+
env:
176+
TARGET_VERSION: ${{ needs.analyze-versions.outputs.target_version }}
177+
run: |
178+
TARGET_VERSION="${{ needs.analyze-versions.outputs.target_version }}"
179+
SYNC_STRATEGY="${{ needs.analyze-versions.outputs.sync_strategy }}"
180180
181181
echo "## 🔄 Version Synchronization" >> $GITHUB_STEP_SUMMARY
182182
echo "Synchronizing all crates to version: **$TARGET_VERSION**" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)