From 0e91f76e4136163a8205d8b70ae244381be0cfe2 Mon Sep 17 00:00:00 2001 From: jobobby04 Date: Sun, 14 Jun 2020 01:06:37 -0400 Subject: [PATCH] ci skip test new action to skip building a preview build --- .github/workflows/TachiyomiSY-Preview-Builder.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/TachiyomiSY-Preview-Builder.yml b/.github/workflows/TachiyomiSY-Preview-Builder.yml index ebf963ee9..2005737c7 100644 --- a/.github/workflows/TachiyomiSY-Preview-Builder.yml +++ b/.github/workflows/TachiyomiSY-Preview-Builder.yml @@ -11,6 +11,11 @@ jobs: - uses: actions/checkout@master with: fetch-depth: '0' + - name: Check last commit message + id: skip + uses: atlwendy/retrieve-commit-messages-from-pr@v2 + - name: Set SHOULD_RUN flag + run: echo ::set-env name=SHOULD_RUN::${{ steps.skip.outputs.shouldRun }} - name: TAG - Bump version and push tag uses: anothrNick/github-tag-action@1.17.2 if: github.event.action != 'pong' @@ -19,7 +24,7 @@ jobs: WITH_V: true RELEASE_BRANCHES: master - name: PING - Dispatch initiating repository event - if: github.event.action != 'pong' + if: github.event.action != 'pong' && env.SHOULD_RUN == 'true' run: | curl -X POST https://api.github.com/repos/jobobby04/TachiyomiSYPreview/dispatches \ -H 'Accept: application/vnd.github.everest-preview+json' \