Refactor workflow files to remove unnecessary triggers and paths

This commit is contained in:
2024-10-03 23:13:13 +02:00
parent 325c105fe3
commit 590fff7f61
9 changed files with 3 additions and 38 deletions
-3
View File
@@ -1,5 +1,4 @@
name: Validate CI/CD Actions
on:
push:
branches:
@@ -7,11 +6,9 @@ on:
paths:
- .github/actions/**
- .github/workflows/actions-*.yml
jobs:
test-cicd-actions:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -1,13 +1,10 @@
name: Ansible Validate Playbook on Pull Request
on:
push:
branches:
- main
paths:
- ansible/playbook_*.yml
- .github/workflows/ansible-apply-playbook.yml
jobs:
ansible-apply:
runs-on: ubuntu-latest
@@ -1,5 +1,4 @@
name: Ansible Validate On Pull Request
on:
pull_request:
branches:
@@ -10,12 +9,6 @@ on:
- opened
- synchronize
- reopened
push:
branches:
- main
paths:
- .github/workflows/ansible-validate-on-pr.yml
jobs:
ansible-validate:
runs-on: ubuntu-latest
@@ -1,5 +1,4 @@
name: Ansible Validate Playbook on Pull Request
on:
pull_request:
branches:
@@ -10,11 +9,6 @@ on:
- opened
- synchronize
- reopened
push:
branches:
- main
paths:
- .github/workflows/ansible-validate-playbook-on-pr.yml
jobs:
ansible-apply:
runs-on: ubuntu-latest
@@ -2,12 +2,10 @@ name: Weekly Reconciliation
on:
schedule:
- cron: "0 2 * * 0"
- cron: "0 3 * * 0"
jobs:
ansible-apply:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -8,8 +8,6 @@ on:
- main
paths:
- "terraform/iac/**"
- .github/workflows/terraform-iac-apply.yml
jobs:
terraform-apply:
runs-on: ubuntu-latest
@@ -10,12 +10,6 @@ on:
- opened
- synchronize
- reopened
push:
branches:
- main
paths:
- .github/workflows/terraform-iac-validate-on-pr.yml
jobs:
terraform-validate:
runs-on: ubuntu-latest
@@ -1,13 +1,13 @@
name: Terraform K8S Apps apply
on:
schedule:
- cron: "0 2 * * 0"
push:
branches:
- main
paths:
- "terraform/k8sapps/**"
- .github/workflows/terraform-microk8s-apply.yml
jobs:
terraform-apply:
runs-on: ubuntu-latest
@@ -10,12 +10,6 @@ on:
- opened
- synchronize
- reopened
push:
branches:
- main
paths:
- .github/workflows/terraform-microk8s-validate.yml
jobs:
terraform-validate:
runs-on: ubuntu-latest