Skip to content

Commit 976ff62

Browse files
committed
ci: fix conditional expression in check-links workflow
1 parent 0f47f66 commit 976ff62

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/check-links.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626
check-links:
2727
runs-on: ubuntu-latest
2828
needs: changedfiles
29-
if: |
30-
github.event.pull_request.user.login != 'otelbot[bot]' && github.event_name == 'pull_request'
31-
&& ${{needs.changedfiles.outputs.md}}
29+
if: >-
30+
${{
31+
github.event.pull_request.user.login != 'otelbot[bot]' &&
32+
github.event_name == 'pull_request' &&
33+
needs.changedfiles.outputs.md
34+
}}
3235
steps:
3336
- name: Checkout Repo
3437
uses: actions/checkout@v4
@@ -43,5 +46,5 @@ jobs:
4346
markdown-link-check \
4447
--verbose \
4548
--config .github/workflows/check_links_config.json \
46-
${{needs.changedfiles.outputs.md}} \
49+
${{ needs.changedfiles.outputs.md }} \
4750
|| { echo "Check that anchor links are lowercase"; exit 1; }

0 commit comments

Comments
 (0)