1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-09 15:55:23 +02:00

fix: revert if syntax

This commit is contained in:
oscarzhou 2023-04-24 12:31:27 +12:00
parent 9e5c056051
commit 8d3ea4335f

View file

@ -5,14 +5,12 @@ on:
- cron: '0 20 * * *'
workflow_dispatch:
env:
working_branch: refs/heads/fix/EE-3059/security-scan-debug
jobs:
client-dependencies:
name: Client Dependency Check
runs-on: ubuntu-latest
if: github.ref == env.working_branch
if: >-
github.ref == 'refs/heads/fix/EE-3059/security-scan-debug'
outputs:
js: ${{ steps.set-matrix.outputs.js_result }}
steps:
@ -54,7 +52,7 @@ jobs:
name: Server Dependency Check
runs-on: ubuntu-latest
if: >- # only run for develop branch
github.ref == env.working_branch
github.ref == 'refs/heads/fix/EE-3059/security-scan-debug'
outputs:
go: ${{ steps.set-matrix.outputs.go_result }}
steps:
@ -104,7 +102,7 @@ jobs:
name: Image Vulnerability Check
runs-on: ubuntu-latest
if: >-
github.ref == env.working_branch
github.ref == 'refs/heads/fix/EE-3059/security-scan-debug'
outputs:
image: ${{ steps.set-matrix.outputs.image_result }}
steps:
@ -142,7 +140,7 @@ jobs:
needs: [client-dependencies, server-dependencies, image-vulnerability]
runs-on: ubuntu-latest
if: >-
github.ref == env.working_branch
github.ref == 'refs/heads/fix/EE-3059/security-scan-debug'
strategy:
matrix:
js: ${{fromJson(needs.client-dependencies.outputs.js)}}