From ffabd794792f4e7fb13e7d63de0db22877426048 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Tue, 2 Mar 2021 16:07:40 -0800 Subject: [PATCH] Add [skip ci] to workflows --- .github/workflows/publish-docker.yml | 9 +++++---- .github/workflows/publish-installers.yml | 5 +++-- .github/workflows/publish-snap.yml | 7 +++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index d0c42e5d..94724a15 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -9,6 +9,7 @@ jobs: build-docker: name: Build Docker Image runs-on: ubuntu-latest + if: !contains(github.event.head_commit.message, '[skip ci]') steps: - name: Checkout Code uses: actions/checkout@v2 @@ -54,14 +55,14 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v1 - if: success() && github.event_name != 'pull_request' + if: success() with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Login to GitHub Container Registry uses: docker/login-action@v1 - if: success() && github.event_name != 'pull_request' + if: success() with: registry: ghcr.io username: ${{ secrets.DOCKER_USERNAME }} @@ -73,7 +74,7 @@ jobs: with: context: . file: ./Dockerfile - push: ${{ github.event_name != 'pull_request' }} + push: true platforms: ${{ steps.prepare.outputs.docker_platforms }} build-args: | TAG=${{ steps.prepare.outputs.tag }} @@ -89,7 +90,7 @@ jobs: discord: name: Discord Notification needs: build-docker - if: always() && github.event_name != 'pull_request' + if: always() && !contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-latest steps: - name: Get Build Job Status diff --git a/.github/workflows/publish-installers.yml b/.github/workflows/publish-installers.yml index 33e3986e..18739a3d 100644 --- a/.github/workflows/publish-installers.yml +++ b/.github/workflows/publish-installers.yml @@ -9,6 +9,7 @@ jobs: build-installer: name: Build ${{ matrix.os_upper }} Installer runs-on: ${{ matrix.os }}-latest + if: !contains(github.event.head_commit.message, '[skip ci]') strategy: fail-fast: false matrix: @@ -99,7 +100,7 @@ jobs: release: name: Release Installers needs: build-installer - if: always() && startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request' + if: always() && startsWith(github.ref, 'refs/tags/') && !contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-latest steps: - name: Get Build Job Status @@ -163,7 +164,7 @@ jobs: discord: name: Discord Notification needs: [build-installer, release] - if: always() && github.event_name != 'pull_request' + if: always() && !contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-latest steps: - name: Get Build Job Status diff --git a/.github/workflows/publish-snap.yml b/.github/workflows/publish-snap.yml index 24c5b84e..0e5ef5c9 100644 --- a/.github/workflows/publish-snap.yml +++ b/.github/workflows/publish-snap.yml @@ -9,6 +9,7 @@ jobs: build-snap: name: Build Snap Package (${{ matrix.architecture }}) runs-on: ubuntu-latest + if: !contains(github.event.head_commit.message, '[skip ci]') strategy: fail-fast: false matrix: @@ -59,9 +60,7 @@ jobs: - name: Publish Snap Package uses: snapcore/action-publish@v1 - if: > - github.event_name != 'pull_request' && - (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly') + if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/nightly' with: store_login: ${{ secrets.SNAP_LOGIN }} snap: ${{ steps.build.outputs.snap }} @@ -70,7 +69,7 @@ jobs: discord: name: Discord Notification needs: build-snap - if: always() && github.event_name != 'pull_request' + if: always() && !contains(github.event.head_commit.message, '[skip ci]') runs-on: ubuntu-latest steps: - name: Get Build Job Status