-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1.23 KB
/
Copy pathupdate-deployed-apps.yaml
File metadata and controls
36 lines (34 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Update deployed apps table
on:
push:
branches:
- main
paths:
- argocd-apps/applicationset.yaml
- k8s-apps/**
workflow_dispatch:
jobs:
update-deployed-apps-table:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Filter paths
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4
id: filter
with:
filters: |
argocd-apps:
- 'argocd-apps/**'
k8s-apps:
- deleted: 'k8s-apps/**'
- name: Update deployed apps table
if: steps.filter.outputs.argocd-apps == 'true' || steps.filter.outputs.k8s-apps == 'true' || github.event_name == 'workflow_dispatch'
run: ./scripts/update-deployed-apps.sh
- name: Commit changes
if: steps.filter.outputs.argocd-apps == 'true' || steps.filter.outputs.k8s-apps == 'true' || github.event_name == 'workflow_dispatch'
uses: EndBug/add-and-commit@cc9c08ba6c8df3b93a8f2db63e89b98368ae2ae8 # v11
with:
default_author: github_actions
message: "docs: [ci] updated deployed apps table"
add: "README.md"