From 82d02b459c6b10ce35157c77e5921047e1a64fbd Mon Sep 17 00:00:00 2001 From: Erik Osterman Date: Tue, 24 Dec 2024 09:56:11 -0600 Subject: [PATCH] trigger workflows from github actions bot --- .github/mergify.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 526045d49..b777eb1ef 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 + - and: + - "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 }}"