diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b10633f74..f62bfdfbe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,11 +7,13 @@ permissions: {} jobs: test1: - if: ${{ !startsWith(github.event.head_commit.message, 'chore(main)')}} + if: ${{ startsWith(github.event.head_commit.message, 'release:')}} runs-on: ubuntu-latest steps: - run: | - echo "test1: ${{ !startsWith(github.event.head_commit.message, 'chore(main)')}}" >> $GITHUB_STEP_SUMMARY + echo "`startsWith(github.event.head_commit.message, 'release:')`: ${{ startsWith(github.event.head_commit.message, 'release:')}}" >> $GITHUB_STEP_SUMMARY + - run: | + echo "`github.event.head_commit.author.name == 'github-actions[bot]'`: ${{ github.event.head_commit.author.name == 'github-actions[bot]'}}" >> $GITHUB_STEP_SUMMARY test2: if: ${{ !startsWith(github.event.head_commit.message, 'chore(main):\ ')}} runs-on: ubuntu-latest