Skip to content

Commit b4d1771

Browse files
alpetrichcourdent
andauthored
use windmill script instead of GH action to push changes (windmill-labs#837)
* use windmill script instead of GH action to push changes back to windmill * Windmill syntax --------- Co-authored-by: Henri Courdent <122811744+hcourdent@users.noreply.github.com>
1 parent 763685c commit b4d1771

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docs/advanced/9_deploy_gh_gl/index.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ For all details on Deployments to prod in Windmill, see [Deploy to prod](../12_d
2323
The integration with git works in three-folds:
2424

2525
1. [GitHub Action](https://docs.github.com/en/actions) + [CLI](../3_cli/index.mdx): upon any commit to a particular branch, the GitHub action will run the `wmill` CLI and push to a Windmill workspace this works using the CLI doing `wmill sync push` ([free & open source](/pricing)).
26+
27+
:::tip
28+
29+
You can also trigger a webhook and push the changes to Windmill using [this Windmill script](https://hub.windmill.dev/scripts/windmill/11414/git-sync-push-windmill) and pass the arguments as query args in the webhook triggered after pushing to the repo.
30+
31+
:::
32+
2633
2. [Git sync](../11_git_sync/index.mdx) (Workspace mode): Windmill automatically committing to a git repository upon any deployment to a workspace, this works using the CLI doing `wmill sync pull` ([Cloud and Enterprise Self-Hosted](/pricing)). Having it commit back to Windmill has 2 benefits:
2734

2835
- It ensures that any automatically created metadata files are wrote-back (in case you pushed a script without its metadata for instance).
@@ -236,4 +243,4 @@ You are now ready to test the workflow. You can do so by:
236243
3. Check the target workspace in Windmill if the script has been deployed.
237244
4. Go to the runs page, toggle the "Sync" kind of jobs. You should see at least 2 jobs, one to push back your change to the staging (if set) workspace (no-op), and one to create a branch that targets the main branch (the one that will be merged).
238245
5. Now in your repository, you should see a new branch named wm_deploy/[WORKSPACE_NAME]/[SCRIPT_PATH] (for instance wm_deploy/staging/f/example/script).
239-
6. Merge that branch, now the changes should trigger the "Deploy to prod" GitHub action in the main branch.
246+
6. Merge that branch, now the changes should trigger the "Deploy to prod" GitHub action in the main branch.

0 commit comments

Comments
 (0)