From 7ef3e32cd7e101b0f4f30b1075525c0fa6183815 Mon Sep 17 00:00:00 2001 From: Bruno Galvao Date: Wed, 19 Jul 2023 14:48:29 -0500 Subject: [PATCH] update to use contains --- .github/workflows/try-runtime.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/try-runtime.yml b/.github/workflows/try-runtime.yml index cb1e1d20..64bfa096 100644 --- a/.github/workflows/try-runtime.yml +++ b/.github/workflows/try-runtime.yml @@ -4,11 +4,11 @@ on: pull_request: types: [labeled, synchronize] push: - branches: '*' + branches: [ main ] jobs: try_runtime: - if: github.event.label.name == 'migration' + if: contains(github.event.pull_request.labels.*.name, 'migration') runs-on: ubuntu-latest steps: - name: Check out the repo