Skip to content

Commit

Permalink
refactor: set if statement on build step
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcjr committed Oct 6, 2023
1 parent f86bdb0 commit c7fca3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
build:

if: ${{ github.event_name != 'pull_request' && contains(github.event.head_commit, 'Dockerfile')}}
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -31,7 +31,6 @@ jobs:

steps:
- name: Checkout repository
if: ${{ github.event_name != 'pull_request' && contains(github.event.head_commit, 'Dockerfile')}}
uses: actions/checkout@v3

# Install the cosign tool except on PR
Expand Down

0 comments on commit c7fca3a

Please sign in to comment.