mirror of
https://github.com/andreicscs/HoneyWire
synced 2026-06-26 12:39:53 +00:00
fixed workflow if statement to run even if the workflow was started manually
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user