From 576ee73bfc0f3a7399d62605e14f9702d8e36f7b Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 16 Nov 2023 21:45:30 +0200 Subject: [PATCH] Update workflows --- .github/workflows/docker.yml | 3 ++- .github/workflows/main.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4129d13..4aa6e43 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,6 +1,7 @@ name: docker on: + workflow_dispatch: push: pull_request: @@ -36,7 +37,7 @@ jobs: deploy: # Deploy to DockerHub only on tag push or master branch push - if: ${{ github.event_name == 'push' && (github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master') }} + if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master' }} runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 059609f..7370044 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,6 +1,7 @@ name: main on: + workflow_dispatch: push: pull_request: @@ -79,7 +80,7 @@ jobs: if-no-files-found: error release: - if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }} + if: ${{ github.ref_type == 'tag' }} needs: - test