Skip to content

Commit

Permalink
Move repository check conditional to be job-level
Browse files Browse the repository at this point in the history
  • Loading branch information
QU3B1M committed Jan 8, 2025
1 parent 73a0b1d commit 6fbfe0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/generate-ecs-mappings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
run-ecs-generator:
if: github.repository == 'wazuh/wazuh-indexer'
runs-on: ubuntu-24.04

steps:
Expand All @@ -28,15 +29,13 @@ jobs:
run: sudo apt-get install docker-compose

- name: Generate PR to wazuh-indexer-plugins
if: github.repository == 'wazuh/wazuh-indexer'
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
run: |
bash ecs/scripts/generate-pr-to-plugins.sh \
-b ${{ steps.branch-name.outputs.branch }} \
-o ../ecs-templates
- name: Upload artifact
if: github.repository == 'wazuh/wazuh-indexer'
uses: actions/upload-artifact@v4
with:
name: ecs-templates
Expand Down

0 comments on commit 6fbfe0d

Please sign in to comment.