Skip to content

Commit bc886a7

Browse files
authored
chore: update invalidate step in deploy workflow (#2120)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Updates the docs GitHub Pages workflow to trigger `invalidate-cloudfront.yaml` with a deployment field and log success. > > - **CI/CD** > - **`.github/workflows/docs.yaml`** > - Update CloudFront cache invalidation step: > - Switch from `invalidate.yaml` to `invalidate-cloudfront.yaml`. > - Add `--field deployment=apify-docs` and use a multiline script. > - Echo a success message after triggering the workflow. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 0c90445. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent a92a652 commit bc886a7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ jobs:
5252
uses: actions/deploy-pages@v4
5353

5454
- name: Invalidate CloudFront cache
55-
run: gh workflow run invalidate.yaml --repo apify/apify-docs-private
55+
run: |
56+
gh workflow run invalidate-cloudfront.yml \
57+
--repo apify/apify-docs-private \
58+
--field deployment=apify-docs
59+
echo "✅ CloudFront cache invalidation workflow triggered successfully"
5660
env:
5761
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)