-
-
Notifications
You must be signed in to change notification settings - Fork 40.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to clear cloudfront api cache
- Loading branch information
1 parent
3d72c49
commit 2f7d7cb
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 } }' |
2 changes: 1 addition & 1 deletion
2
.github/workflows/cloudfront-cache.yml → .github/workflows/cloudfront-fe-cache.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Clears Cloudfront Cache | ||
name: Clears Frontend Cloudfront Cache | ||
on: | ||
workflow_dispatch: | ||
jobs: | ||
|