Skip to content

chore(ci/deploy): run on contributors PR#373

Merged
DarianM merged 21 commits intomainfrom
deploy-flow
Jan 20, 2026
Merged

chore(ci/deploy): run on contributors PR#373
DarianM merged 21 commits intomainfrom
deploy-flow

Conversation

@DarianM
Copy link
Copy Markdown
Member

@DarianM DarianM commented Oct 1, 2025

Context

Maintainers can trigger deployments preview by reviewing with ok-to-deploy

dorny/paths-filter@v3 action does not support the pull_request_review event issue #232

Work around, changes implement a manual file change detection using git diff for review-triggered deployments.

Triggered when changes are made to the following file patterns:

API deployment

  • .github/workflows/deploy.yml
  • .github/workflows/deploy-worker/**
  • api/**
  • shared/**

CDN deployment

  • .github/workflows/deploy.yml
  • .github/workflows/deploy-worker/**
  • api/** - API source code (/cdn depends on API)
  • shared/**
  • components/**
  • cdn/**

Frontend deployment

  • .github/workflows/deploy.yml
  • .github/workflows/deploy-worker/**
  • api/**
  • shared/**
  • components/**
  • cdn/** - CDN worker (/frontend depends on CDN)
  • frontend/**

Note: deploy.yml matches the pattern ^.github/workflows/deploy.yml, all three conditions evaluate to true, causing all modules to deploy on deploy.yml changes.

Comment thread .github/scripts/check-deploy-permissions.js Outdated
Comment thread .github/workflows/deploy.yml Outdated
Comment thread .github/scripts/check-deploy-permissions.js Outdated
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 18, 2026

Deployment results

Worker Alias URL Outcome
API - 57155ebd success
CDN - 5c2e6edb success
App - 69e97cfe success

Logs #21173096970

@DarianM DarianM marked this pull request as ready for review January 18, 2026 23:58
@DarianM DarianM changed the title chore(ci/deploy): run on maintainers PR chore(ci/deploy): run on contributors PR Jan 19, 2026
Comment thread .github/scripts/check-deploy-permissions.ts Outdated
Comment thread .github/scripts/check-deploy-permissions.ts Outdated
Comment thread .github/workflows/deploy-worker/action.yml Outdated
Comment thread .github/scripts/check-deploy-permissions.ts Outdated
Comment thread package.json Outdated
Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok-to-deploy

Copy link
Copy Markdown
Member Author

@DarianM DarianM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok-to-deploy

Copy link
Copy Markdown
Member Author

@DarianM DarianM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok-to-deploy

@DarianM DarianM requested a review from sidvishnoi January 19, 2026 18:28
Comment thread .github/workflows/deploy.yml Outdated
Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok-to-deploy

Copy link
Copy Markdown
Member Author

@DarianM DarianM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok-to-deploy

Copy link
Copy Markdown
Member

@sidvishnoi sidvishnoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion, but LGTM! :shipit:

Comment thread .github/workflows/deploy.yml Outdated
Comment on lines +84 to +86
WORKFLOW_CHANGED=$(echo "$CHANGED_FILES" | grep -qE '^\.github/workflows/(deploy\.yml|deploy-worker/)' && echo true || echo false)
API_CHANGED=$(echo "$CHANGED_FILES" | grep -qE '^api/' && echo true || echo false)
SHARED_CHANGED=$(echo "$CHANGED_FILES" | grep -qE '^shared/' && echo true || echo false)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would suggest merging WORKFLOW_CHANGED and SHARED_CHANGED (as workflow is like a shared file), and then we won't have to check both WORKFLOW and SHARED for each api/cdn/frontend.

@DarianM DarianM merged commit b21ecda into main Jan 20, 2026
5 checks passed
@DarianM DarianM deleted the deploy-flow branch January 20, 2026 13:25
@github-project-automation github-project-automation bot moved this from Backlog to Done in Publisher Tools Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants