diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 94a85726..d9ad0019 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -13,10 +13,13 @@ on: - '**.md' workflow_dispatch: +env: + IS_AND: ${{ startsWith(github.event.head_commit.message, '[android]') }} + jobs: build: - runs-on: ubuntu-latest + if: ${{ env.IS_AND == 'true' }} permissions: contents: read packages: write diff --git a/.github/workflows/webpack.yml b/.github/workflows/webpack.yml index 3a852c7c..83b85a54 100644 --- a/.github/workflows/webpack.yml +++ b/.github/workflows/webpack.yml @@ -6,9 +6,13 @@ on: pull_request: branches: [master] +env: + IS_WP: ${{ startsWith(github.event.head_commit.message, '[webpack]') }} + jobs: build: runs-on: ubuntu-latest + if: ${{ env.IS_WP == 'true' }} steps: - uses: actions/checkout@v2