[openwrt/openwrt] CI: Simplify if conditions

LEDE Commits lede-commits at lists.infradead.org
Sat Dec 3 05:35:11 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/ce343653c2618e1d335662b924c382c0192b7b46

commit ce343653c2618e1d335662b924c382c0192b7b46
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sat Nov 5 14:38:35 2022 +0100

    CI: Simplify if conditions
    
    There is no need to put a ${{ }} around the if conditions.
    
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .github/workflows/kernel.yml   | 2 +-
 .github/workflows/packages.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/kernel.yml b/.github/workflows/kernel.yml
index 773e843bfd..a204be3395 100644
--- a/.github/workflows/kernel.yml
+++ b/.github/workflows/kernel.yml
@@ -156,7 +156,7 @@ jobs:
             ccache-kernel-${{ env.TARGET }}/${{ env.SUBTARGET }}-
 
       - name: Download external toolchain
-        if: ${{ steps.cache-external-toolchain.outputs.cache-hit != 'true' }}
+        if: steps.cache-external-toolchain.outputs.cache-hit != 'true'
         shell: su buildbot -c "sh -e {0}"
         working-directory: openwrt
         run: |
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index 49d795c122..05f089e66e 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -93,7 +93,7 @@ jobs:
           key: ${{ env.TOOLCHAIN_FILE }}-${{ env.TOOLCHAIN_SHA256 }}
 
       - name: Download external toolchain
-        if: ${{ steps.cache-external-toolchain.outputs.cache-hit != 'true' }}
+        if: steps.cache-external-toolchain.outputs.cache-hit != 'true'
         shell: su buildbot -c "sh -e {0}"
         working-directory: openwrt
         run: |




More information about the lede-commits mailing list