Skip to content

Commit

Permalink
debug my action
Browse files Browse the repository at this point in the history
  • Loading branch information
Klippert, Alex committed Nov 14, 2023
1 parent 6d32907 commit f326764
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/combined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down

0 comments on commit f326764

Please sign in to comment.