From e9aeca32daf9330f680e445a5acdbf1cbbf9f028 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 25 May 2023 11:13:19 +0100 Subject: [PATCH] .github/workflows/preview.yml: Ensure preview is recreated on PR merges When a PR is merged, we want the preview to be automatically updated. --- .github/workflows/preview.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 54937f5d8..2db5777ca 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -9,9 +9,14 @@ on: workflow_dispatch: # Run the workflow when the base branch is updated. + # + # Note that a push from a workflow will by default not trigger a push event, + # so we list both branches here as "main" only would currently do nothing: + # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow push: branches: - 'main' + - 'master' permissions: # Necessary to be able to push to the repo -- GitLab