2
0
Эх сурвалжийг харах

Fix conditional using env namespace at job level

Issue gh-11158
Steve Riesenberg 3 жил өмнө
parent
commit
0c94cfca63

+ 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