From baf7fb001925a45163311a6deb077f90e8a0b1ea Mon Sep 17 00:00:00 2001 From: Mo Date: Mon, 18 Jul 2022 11:36:21 -0500 Subject: [PATCH] ci: ability to skip e2e workflow [skip e2e] --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7ae5dca19..bbdfc4f78 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -52,17 +52,20 @@ jobs: run: yarn test - name: Login to Docker Hub + if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Publish SNJS Docker image for E2E testing + if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" run: | yarn docker build @standardnotes/snjs -t standardnotes/snjs:${{ github.sha }} docker push standardnotes/snjs:${{ github.sha }} - name: Run E2E test suite + if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" uses: convictional/trigger-workflow-and-wait@v1.6.1 with: owner: standardnotes @@ -84,6 +87,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_TOKEN }} - name: Publish SNJS Docker image as stable + if: "${{ contains(github.event.head_commit.message, 'skip e2e') == false }}" run: | docker tag standardnotes/snjs:${{ github.sha }} standardnotes/snjs:latest docker push standardnotes/snjs:latest