Skip to content

Fix CloudFront invalidation for multiple files; skip sync on forks - #281

Open
keiravillekode wants to merge 1 commit into
exercism:mainfrom
keiravillekode:sync-workflow-fixes
Open

keiravillekode wants to merge 1 commit into
exercism:mainfrom
keiravillekode:sync-workflow-fixes

Conversation

@keiravillekode

Copy link
Copy Markdown
Contributor
  • github-script JSON-encodes its result by default, so the paths arrived
    in the shell wrapped in quotes and were passed to
    --paths as one argument ("/a /b"). Use result-encoding: string and
    pass the paths through an env var, split into separate arguments.
  • Only the head commit of a push was inspected, so files changed in
    earlier commits of a multi-commit push were never invalidated.
    Compare before...after instead.
  • Skip the job on forks, which lack the AWS secrets and fail daily.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- github-script JSON-encodes its result by default, so the paths arrived
  in the shell wrapped in quotes and were passed to
  `--paths` as one argument ("/a /b"). Use result-encoding: string and
  pass the paths through an env var, split into separate arguments.
- Only the head commit of a push was inspected, so files changed in
  earlier commits of a multi-commit push were never invalidated.
  Compare before...after instead.
- Skip the job on forks, which lack the AWS secrets and fail daily.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant