From f326764c9ad0580195a4b902a792948392177ff9 Mon Sep 17 00:00:00 2001 From: "Klippert, Alex" Date: Tue, 14 Nov 2023 16:00:36 +0100 Subject: [PATCH] debug my action --- .github/workflows/combined.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/combined.yml b/.github/workflows/combined.yml index 896d913a..d03066fa 100644 --- a/.github/workflows/combined.yml +++ b/.github/workflows/combined.yml @@ -8,6 +8,26 @@ on: - '**' jobs: + debug_action: + runs-on: ubuntu-latest + steps: + - name: Debug Info + run: | + echo "Before if statement" + echo "Event name: ${{ github.event_name }}" + echo "Event paths: ${{ github.event.paths }}" + echo "Ref: ${{ github.event.ref }}" + if [[ ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/develop') && contains(github.event.paths, 'base/') }} ]]; then + echo "Condition for base_image is true" + else + echo "Condition for base_image is false" + fi + if [[ ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/heads/develop') && contains(github.event.paths, 'splunk/common-files/') }} ]]; then + echo "Condition for splunk_image is true" + else + echo "Condition for splunk_image is false" + fi + echo "After if statements" base_image: runs-on: ubuntu-latest if: contains(github.event.paths, 'base/')