Deploy from a pull request
-
Dispatch workflow
deployer-pull-request.ymlgh workflow run deployer-pull-request.yml -f team_slug="<team-slug>" -
Goto "Pull requests" tab in GitHub and wait until pull request is created
-
Open pull request
chore(cd): repo deploymentand select which repositories to deployExample
-
Wait until list of repositories is created
-
Click
Squash and merge -
Wait for all selected repositories to be deployed, label with date deployed is added to closed pull request
Example
stateDiagram-v2
dsp: Dispatch list of repos to deploy
pr: Pull request
cpr: Create pull request
epr: Edit pull request
mpr: Merge pull request
[*] --> cpr: workflow_dispatch
cpr --> pr:Create checklist of team repos
pr --> epr
epr --> pr: changes
pr --> mpr
mpr --> dsp: closed
dsp --> [*]:workflow_dispatch
Selected repositories with workflow deploy.yml will automatically start deploy.
Once deployment is complete, the closed pull request is labeled with id for the deployment.
Summary for each batch with a link back to pull request that iniated the deployment.




