mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-10 19:26:03 +02:00
Add workflow to clear cloudfront api cache
This commit is contained in:
16
.github/workflows/cloudfront-api-cache.yml
vendored
Normal file
16
.github/workflows/cloudfront-api-cache.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Clears API Cloudfront Cache
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
aws_costs:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Clear Cloudfront Caching
|
||||||
|
run: |
|
||||||
|
curl -L \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
|
||||||
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
https://api.github.com/repos/roadmapsh/infra-ansible/actions/workflows/playbook.yml/dispatches \
|
||||||
|
-d '{ "ref":"master", "inputs": { "playbook": "roadmap_web.yml", "tags": "cloudfront-api", "is_verbose": false } }'
|
@@ -1,4 +1,4 @@
|
|||||||
name: Clears Cloudfront Cache
|
name: Clears Frontend Cloudfront Cache
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
Reference in New Issue
Block a user