Skip to content

Commit 2f7d7cb

Browse files
committed
Add workflow to clear cloudfront api cache
1 parent 3d72c49 commit 2f7d7cb

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Clears API Cloudfront Cache
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
aws_costs:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Clear Cloudfront Caching
9+
run: |
10+
curl -L \
11+
-X POST \
12+
-H "Accept: application/vnd.github+json" \
13+
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
14+
-H "X-GitHub-Api-Version: 2022-11-28" \
15+
https://api.github.com/repos/roadmapsh/infra-ansible/actions/workflows/playbook.yml/dispatches \
16+
-d '{ "ref":"master", "inputs": { "playbook": "roadmap_web.yml", "tags": "cloudfront-api", "is_verbose": false } }'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Clears Cloudfront Cache
1+
name: Clears Frontend Cloudfront Cache
22
on:
33
workflow_dispatch:
44
jobs:

0 commit comments

Comments
 (0)