Skip to content

Commit

Permalink
Update readme and date badge for main branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed Nov 26, 2023
1 parent 60126bd commit a34f44c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/BuildDockerPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ jobs:
name: Create Docker README.md
runs-on: ubuntu-latest
needs: toolversions
# Skip pull requests
if: ${{ github.event_name != 'pull_request' }}
# Skip pull requests and only update on main branch
if: ${{ (github.event_name != 'pull_request') && (endsWith(github.ref, 'refs/heads/main')) }}

steps:

Expand Down Expand Up @@ -265,8 +265,8 @@ jobs:
name: Date badge
runs-on: ubuntu-latest
needs: buildpush
# Skip pull requests
if: ${{ github.event_name != 'pull_request' }}
# Skip pull requests and only update on main branch
if: ${{ (github.event_name != 'pull_request') && (endsWith(github.ref, 'refs/heads/main')) }}

steps:

Expand Down

0 comments on commit a34f44c

Please sign in to comment.