瀏覽代碼

Fix conditional using env namespace at job level

Issue gh-11158
Steve Riesenberg 3 年之前
父節點
當前提交
0c94cfca63
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      .github/workflows/release-next-version.yml

+ 1 - 2
.github/workflows/release-next-version.yml

@@ -10,12 +10,11 @@ env:
   GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
   GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
   GRADLE_ENTERPRISE_SECRET_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
-  RUN_JOBS: ${{ github.repository == 'spring-projects/spring-security' }}
 
 jobs:
   release-next-version:
     name: Initiate Release If Scheduled
-    if: env.RUN_JOBS == 'true'
+    if: ${{ github.repository == 'spring-projects/spring-security' }}
     runs-on: ubuntu-latest
     steps:
       - id: checkout-source