Skip to content

Commit

Permalink
event trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
patel-bhavin committed Jul 2, 2024
1 parent 4f3158a commit 9e79de7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# name: auto-update
# on:
# push: {}
# jobs:
name: auto-update
on:
push: {}
jobs:

# validate-tag-if-present:
# runs-on: ubuntu-latest
validate-tag-if-present:
runs-on: ubuntu-latest

# steps:
# - name: TAGGED, Validate that the tag is in the correct format
steps:
- name: TAGGED, Validate that the tag is in the correct format

# run: |
# echo "The GITHUB_REF: $GITHUB_REF"
# #First check to see if the release is a tag
# if [[ $GITHUB_REF =~ refs/tags/* ]]; then
# #Yes, this is a tag, so we need to test to make sure that the tag
# #is in the correct format (like v1.10.20)
# if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
# echo "PASS: Tagged release with good format"
# exit 0
# else
# echo "FAIL: Tagged release with bad format"
# exit 1
# fi
# else
# echo "PASS: Not a tagged release"
# exit 0
# fi
# autoupdate:
# name: autoupdate
# runs-on: ubuntu-latest
# steps:
# - uses: docker://chinthakagodawita/autoupdate-action:v1
# env:
# GITHUB_TOKEN: "${{ secrets.SECURITY_CONTENT_ADMIN_TASKS }}"
# DRY_RUN: "false"
# MERGE_MSG: "Branch was auto-updated."
run: |
echo "The GITHUB_REF: $GITHUB_REF"
#First check to see if the release is a tag
if [[ $GITHUB_REF =~ refs/tags/* ]]; then
#Yes, this is a tag, so we need to test to make sure that the tag
#is in the correct format (like v1.10.20)
if [[ $GITHUB_REF =~ refs/tags/v[0-9]+.[0-9]+.[0-9]+ ]]; then
echo "PASS: Tagged release with good format"
exit 0
else
echo "FAIL: Tagged release with bad format"
exit 1
fi
else
echo "PASS: Not a tagged release"
exit 0
fi
autoupdate:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: docker://chinthakagodawita/autoupdate-action:v1
env:
GITHUB_TOKEN: "${{ secrets.SECURITY_CONTENT_ADMIN_TASKS }}"
DRY_RUN: "false"
MERGE_MSG: "Branch was auto-updated."
2 changes: 1 addition & 1 deletion contentctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ apps:
# appid: SplunkEnterpriseSecuritySuite
# version: 7.3.1
# description: description of app
# hardcoded_path: ~/Downloads/splunk-enterprise-security_731.spl
# hardcoded_path: apps/splunk-enterprise-security_731.spl
- uid: 1621
title: Splunk Common Information Model (CIM)
appid: Splunk_SA_CIM
Expand Down

0 comments on commit 9e79de7

Please sign in to comment.