mirror of
https://github.com/scratchfoundation/scratch-resources.git
synced 2025-06-07 10:53:57 -04:00
ci: fix Fastly purge step
This commit is contained in:
parent
733dddfab5
commit
0523d652b4
1 changed files with 1 additions and 3 deletions
4
.github/workflows/ci-cd.yml
vendored
4
.github/workflows/ci-cd.yml
vendored
|
@ -29,8 +29,6 @@ jobs:
|
||||||
AWS_REGION: ${{ secrets.AWS_REGION }}
|
AWS_REGION: ${{ secrets.AWS_REGION }}
|
||||||
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
|
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
|
||||||
TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }}
|
TRIGGER_DEPLOY: ${{ startsWith(github.ref, 'refs/heads/master') }}
|
||||||
FASTLY_API_TOKEN: ${{ secrets.FASTLY_KEY }}
|
|
||||||
FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -70,4 +68,4 @@ jobs:
|
||||||
- name: Purge Fastly Cache
|
- name: Purge Fastly Cache
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
run: |
|
||||||
curl -X POST -H "Fastly-Key: ${{ secrets.FASTLY_API_TOKEN }}" https://api.fastly.com/service/${{ secrets.FASTLY_SERVICE_ID }}/purge_all
|
curl -X POST -H "Fastly-Key: ${{ secrets.FASTLY_KEY }}" https://api.fastly.com/service/${{ secrets.FASTLY_SERVICE_ID }}/purge_all
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue