Skip to content

Commit

Permalink
Explicit conditional matching
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Mar 12, 2024
1 parent fe1b9d5 commit 2235aa7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
rust_changed: ${{ steps.rust.outputs.any_changed }}

info:
timeout-minutes: 3
timeout-minutes: 3`

Check failure on line 51 in .github/workflows/pr.yml

View workflow job for this annotation

GitHub Actions / actionlint

expecting a single ${{...}} expression or float number literal, but found plain text node ``` timeout-minutes: 3` ^~ ```
needs: meta
runs-on: ubuntu-latest
steps:
Expand All @@ -65,7 +65,7 @@ jobs:
rust:
needs: meta
if: needs.meta.outputs.any_changed
if: needs.meta.outputs.any_changed == 'true'
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
permissions:
Expand All @@ -87,7 +87,7 @@ jobs:

rust-crates:
needs: meta
if: needs.meta.outputs.cargo_changed
if: needs.meta.outputs.cargo_changed == 'true'
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
Expand All @@ -102,7 +102,7 @@ jobs:

linkerd-install:
needs: meta
if: needs.meta.outputs.any_changed
if: needs.meta.outputs.any_changed == 'true'
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:

merge-dependabot:
needs: [meta, ok]
if: needs.meta.outputs.any_changed && needs.meta.outputs.is_dependabot == 'true'
if: needs.meta.outputs.any_changed == 'true' && needs.meta.outputs.is_dependabot == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
with:
path: artifacts
- run: du -h artifacts/**/*
- if: needs.meta.outputs.publish
- if: needs.meta.outputs.publish == 'true'
uses: softprops/action-gh-release@d99959edae48b5ffffd7b00da66dcdb0a33a52ee
with:
name: v${{ needs.meta.outputs.version }}
Expand Down

0 comments on commit 2235aa7

Please sign in to comment.