From 7275a2c72463bc4ca4743a8117b1823f778338b3 Mon Sep 17 00:00:00 2001 From: Vincent Massaro Date: Thu, 12 Dec 2024 12:52:24 -0500 Subject: [PATCH] fix: run workflow after creating a release to clean up multidevs b382a15 broke the behavior of release_pr.yml running when a release pull request was closed. This change triggers the workflow to run after running release.yml. --- .github/workflows/release_pr.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_pr.yml b/.github/workflows/release_pr.yml index 0272d91bc..7dbc6877c 100644 --- a/.github/workflows/release_pr.yml +++ b/.github/workflows/release_pr.yml @@ -3,10 +3,13 @@ on: pull_request: types: - synchronize - - closed branches: - v[0-9]+ workflow_dispatch: + workflow_run: + workflows: [Create a release] + types: + - completed env: YALESITES_BUILD_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }} GH_TOKEN: ${{ secrets.YALESITES_BUILD_TOKEN }} @@ -178,7 +181,7 @@ jobs: run: ./.ci/github/deploy_release_sites clean_up_multidevs: - if: ${{ github.event.action == 'closed' }} + if: ${{ github.event.action == 'completed' }} needs: [setup] runs-on: ubuntu-latest env: