Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Nov 16, 2023
1 parent db1da55 commit 576ee73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: docker

on:
workflow_dispatch:
push:
pull_request:

Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: main

on:
workflow_dispatch:
push:
pull_request:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 576ee73

Please sign in to comment.