Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/cicd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,39 +55,39 @@ jobs:
run: |
echo "main=${{ contains(fromJSON(steps.test_to_run.outputs.main), 'all') }}" | tee -a "$GITHUB_OUTPUT"

# - name: Get changed files
# id: changed-files
# if: github.event_name == 'pull_request'
# uses: tj-actions/changed-files@v44
# with:
# files_yaml: |
# doc:
# - '**.md'
# - docs/**
# src:
# - '!**.md'
# - '!docs/**'
- name: Get changed files
id: changed-files
if: github.event_name == 'pull_request'
uses: step-security/changed-files@v45.0.1
with:
files_yaml: |
doc:
- '**.md'
- docs/**
src:
- '!**.md'
- '!docs/**'

- name: Evaluate conditions
id: evaluate
env:
# DOCS_ONLY: ${{ steps.changed-files.outputs.doc_any_changed == 'true' && steps.changed-files.outputs.src_any_changed == 'false' }}
# CHANGED_DOCS: ${{ steps.changed-files.outputs.doc_all_changed_files }}
# CHANGED_SRC: ${{ steps.changed-files.outputs.src_all_changed_files }}
DOCS_ONLY: ${{ steps.changed-files.outputs.doc_any_changed == 'true' && steps.changed-files.outputs.src_any_changed == 'false' }}
CHANGED_DOCS: ${{ steps.changed-files.outputs.doc_all_changed_files }}
CHANGED_SRC: ${{ steps.changed-files.outputs.src_all_changed_files }}
IS_PULLREQUEST: ${{ github.event_name == 'pull_request' }}
LABEL: ${{ github.event.label.name == 'Run CICD' }}
MERGE_GROUP: ${{ github.event_name == 'merge_group' }}
run: |
# Some output that's helpful for debugging
# echo "Docs changed: $CHANGED_DOCS"
# echo "Src changed: $CHANGED_SRC"
echo "Docs changed: $CHANGED_DOCS"
echo "Src changed: $CHANGED_SRC"

# echo "DOCS_ONLY: $DOCS_ONLY"
echo "DOCS_ONLY: $DOCS_ONLY"
echo "LABEL: $LABEL"
echo "IS_PULLREQUEST: $IS_PULLREQUEST"

# Run CI only (on main or if label is attached) and if it's not only docs
echo run_ci=$([[ ("$LABEL" = "true" || "$IS_PULLREQUEST" = "false" || "$MERGE_GROUP" = "true") ]] && echo "true" || echo "false") | tee -a "$GITHUB_OUTPUT"
echo run_ci=$([[ ("$LABEL" = "true" || "$IS_PULLREQUEST" = "false" || "$MERGE_GROUP" = "true") && "$DOCS_ONLY" = "false"]] && echo "true" || echo "false") | tee -a "$GITHUB_OUTPUT"

build-container:
if: ${{ needs.pre-flight.outputs.run_ci == 'true' }}
Expand Down