fixed workflow if statement to run even if the workflow was started manually

This commit is contained in:
andreicscs
2026-04-03 13:04:47 +02:00
parent 4f700a89b2
commit 3b2d9bb507
+6 -6
View File
@@ -27,12 +27,12 @@ jobs:
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: python
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
docker-security-scan:
name: Build & Trivy Image Scan
@@ -44,7 +44,7 @@ jobs:
# We need to find which sensor changed to build the right Dockerfile
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v44
with:
files: Sensors/**
@@ -78,7 +78,7 @@ jobs:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
uses: tj-actions/changed-files@v44
with:
files: Sensors/**
@@ -113,7 +113,7 @@ jobs:
review-community-pr:
name: "👀 Review: Community Contribution"
needs: [static-analysis, docker-security-scan, functional-test]
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment:
name: community_review # Create this in Settings -> Environments
@@ -131,7 +131,7 @@ jobs:
publish-official-main:
name: "🚀 Publish: Official Sensor Release"
needs: [static-analysis, docker-security-scan, functional-test]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment:
name: production_registry # Create this in Settings -> Environments