diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 57fa0f578..dfbeded83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ env: jobs: build_android: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' steps: - name: Checkout the code @@ -87,6 +88,7 @@ jobs: build_ios: runs-on: macos-latest + if: github.ref == 'refs/heads/master' steps: - name: Checkout the code diff --git a/.github/workflows/draft-new-release.yml b/.github/workflows/draft-new-release.yml index c042a5cf5..cb8a87fc6 100644 --- a/.github/workflows/draft-new-release.yml +++ b/.github/workflows/draft-new-release.yml @@ -5,6 +5,8 @@ on: workflow_dispatch jobs: draft-new-release: runs-on: ubuntu-latest + if: github.ref == 'refs/heads/master' + steps: - name: Get Flutter Build Run ID id: get_run_id