Skip to content

Merge branch 'dev' of https://github.com/kexa-io/helm-charts into dev #3

Merge branch 'dev' of https://github.com/kexa-io/helm-charts into dev

Merge branch 'dev' of https://github.com/kexa-io/helm-charts into dev #3

Workflow file for this run

name: Get Rules updates
on:
push:
branches:
- dev
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
jobs:
update-rules:
runs-on: ubuntu-latest
steps:
- name: Checkout Current Repository
uses: actions/checkout@v4
with:
path: current-repo
- name: Checkout Kexa Rules Repository
uses: actions/checkout@v4
with:
repository: 'kexa-io/public-rules'
path: external-repo
- name: List Files in Repositories
run: |
echo "Listing files in current-repo:"
ls -R current-repo
echo "Listing files in external-repo:"
ls -R external-repo
shell: bash
- name: Create Target Directory
run: |
mkdir -p current-repo/kexa-chart/files/rules
shell: bash
- name: Copy Files
run: |
cp -rf external-repo/* current-repo/kexa-chart/files/rules/
shell: bash
- name: List Target Directory
run: |
echo "Files in target directory after copy:"
ls -R current-repo/kexa-chart/files/rules/
shell: bash
- name: Configure Git
run: |
git config --global user.name "Adrien E"
git config --global user.email "[email protected]"
working-directory: current-repo
- name: Commit changes
run: |
git add kexa-chart/files/rules/
git commit -m "Get new rules"
git push
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
working-directory: current-repo