Skip to content

Commit

Permalink
fix: Always run workflows when the repository is pushed to
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly committed Jan 27, 2025
1 parent 594bc3d commit 9550d23
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on:
- cron: '30 1 * * 1' # run every Monday at 01:30
workflow_dispatch:
push:
branches: [ "main" ]
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
branches: [ "*" ]
tags: [ "*" ]
pull_request:
branches: [ "main" ]

# Make sure there is no pipeline running uselessly.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
set_date:
runs-on: ubuntu-latest
Expand All @@ -37,7 +41,7 @@ jobs:
secrets: inherit

publish_dev:
if: ${{ github.event_name == 'pull_request' }}
if: github.event.pull_request.merged != true
push: true
needs: set_date
uses: famedly/github-workflows/.github/workflows/docker.yml@49401388492ed7fe3eeb13fbefacf68168e9bc64
Expand Down

0 comments on commit 9550d23

Please sign in to comment.