From b406027042d5181c0bc7eb7336d15b721bb5a245 Mon Sep 17 00:00:00 2001 From: "Erik Osterman (CEO @ Cloud Posse)" Date: Tue, 24 Dec 2024 10:06:44 -0600 Subject: [PATCH] Trigger workflows from github actions bot (#890) * trigger workflows from github actions bot * Update .github/mergify.yml --- .github/mergify.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 526045d49..94a928ce0 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -1 +1,38 @@ extends: .github + +shared: + # Automated pull requests from bot users + is_a_bot: &is_a_bot + - or: + - "author=github-actions[bot]" + + # Default branches + is_default_branch: &is_default_branch + - or: + - "base=main" + - "base=master" + + # It's not closed or merged + is_open: &is_open + - and: + - -merged + - -closed + +pull_request_rules: + - name: Trigger workflow dispatch on PR synchronized by github-actions[bot] + conditions: + - and: *is_a_bot + - and: *is_open + - and: *is_default_branch + + actions: + comment: + message: | + Triggering the workflow dispatch for preview build... + github_actions: + workflow: + dispatch: + - workflow: website-preview-build.yml + ref: "{{ pull_request.head.ref }}" + - workflow: test.yml + ref: "{{ pull_request.head.ref }}"