Add [skip ci] to workflows

This commit is contained in:
JonnyWong16 2021-03-02 16:07:40 -08:00
parent 6ee9e99c23
commit ffabd79479
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
3 changed files with 11 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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