Skip to content

Commit

Permalink
Merge pull request #47 from mStirner/dev
Browse files Browse the repository at this point in the history
run only on merged pr's
  • Loading branch information
mStirner authored Feb 29, 2024
2 parents b8ec517 + c357f95 commit 5a47baf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Publish Docker nightly image

on:
push:
pull_request:
branches: [dev]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
if: github.repository == 'OpenHausIO/connector'
if: github.repository == 'OpenHausIO/connector' && github.event.pull_request.merged == true
steps:
- name: Check out the repo
uses: actions/checkout@v4
Expand All @@ -21,7 +21,7 @@ jobs:
- run: npm run build

- name: Log in to Docker Hub
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down

0 comments on commit 5a47baf

Please sign in to comment.