Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually run workflows when the repository is pushed to #13

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 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 @@ -22,6 +26,7 @@ jobs:

publish_release:
if: github.event.pull_request.merged == true
push: true
needs: set_date
uses: famedly/github-workflows/.github/workflows/docker.yml@49401388492ed7fe3eeb13fbefacf68168e9bc64
with:
Expand All @@ -36,7 +41,8 @@ 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
with:
Expand Down