Skip to content

ci: add reusable advance-deploy-env workflow - #3

Merged
LukasWodka merged 1 commit into
developfrom
chore/add-advance-deploy-env-workflow
Apr 25, 2026
Merged

ci: add reusable advance-deploy-env workflow#3
LukasWodka merged 1 commit into
developfrom
chore/add-advance-deploy-env-workflow

Conversation

@LukasWodka

Copy link
Copy Markdown
Contributor

Summary

Adds a reusable workflow at .github/workflows/advance-deploy-env.yml that each active repo will call on push to develop, staging, master, or main. For every PR contained in the push, it updates the PR's project card:

  • develop merge → Deploy environment = dev
  • staging merge → Deploy environment = staging
  • master/main merge → Deploy environment = prodandStatus = Done

This implements the "Done = shipped to prod" model from the kanban redesign — Status sits in Validation while a PR is on dev/staging, and only flips to Done when production-merged.

Why a reusable workflow

Same pattern as the kanban auto-add: write the logic once, call it from each repo with a 5-line caller. No duplication, easy to update.

Dependencies

  • Org secret PROJECTS_KANBAN_TOKEN (already configured)
  • Project fields Deploy environment and Status on engineer kanban (already created)

Activation

This PR alone does not change anything — the file is dormant until each repo opts in by adding a thin caller workflow. Caller rollout will be a follow-up batch of PRs.

Test plan

  • After merge: any push to a non-target branch (e.g. chore/foo) is a no-op (workflow logic checks ref_name)
  • Once one caller is wired up: merge a small PR to develop, verify the PR's Deploy environment field flips to dev on the project board
  • Same flow on master/main merge: verify Status flips to Done and Deploy environment flips to prod

🤖 Generated with Claude Code

Reusable workflow that updates a PR's project Deploy environment field
when its parent branch (develop/staging/master/main) receives a merge.
Behavior per branch:
- develop → Deploy env = dev
- staging → Deploy env = staging
- master/main → Deploy env = prod AND Status = Done
Each active repo will reference this with a thin caller workflow.
Until callers are wired up, this file is dormant.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@LukasWodka
LukasWodka merged commit 2ec2ce7 into developApr 25, 2026
1 check passed
@LukasWodka
LukasWodka deleted the chore/add-advance-deploy-env-workflow branch April 25, 2026 16:17
Sign up for freeto 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.

2 participants

@LukasWodka@saadqbal