From 06eb8bf86c0d6d1ac44177190948ebb0a91bfb32 Mon Sep 17 00:00:00 2001 From: "Jonas I. Liechti" Date: Sun, 23 Jun 2024 21:37:18 +0200 Subject: [PATCH] fix: corrected workflow running conditions --- .github/workflows/create-publish-docker.yml | 44 ++++++++++----------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/workflows/create-publish-docker.yml b/.github/workflows/create-publish-docker.yml index 9256098..95a4c8d 100644 --- a/.github/workflows/create-publish-docker.yml +++ b/.github/workflows/create-publish-docker.yml @@ -1,8 +1,10 @@ name: Create Docker image and publish to GH Packages on: - pull_request: + push: branches: [ main ] # create a new version whenever we push to main + schedule: + - cron: "12 2 2 * *" # run at 2:12 of the 2nd of every month env: DOCKER_REGISTRY: ghcr.io # where to register the image @@ -47,20 +49,18 @@ jobs: matrix: # NOTE: valgrind container is fedora, gcc, devel # see https://r-hub.github.io/containers/containers.html#valgrind - # target-os: ['debian', 'fedora'] - target-os: ['debian'] + target-os: ['debian', 'fedora'] compiler: ['gcc', 'clang'] r-version: ['devel', 'release', 'patched'] exclude: - - target-os: 'debian' - # - target-os: 'fedora' - # r-version: 'release' - # - target-os: 'fedora' - # r-version: 'patched' - # - compiler: 'clang' - # r-version: 'patched' - # - compiler: 'clang' - # r-version: 'release' + - target-os: 'fedora' + r-version: 'release' + - target-os: 'fedora' + r-version: 'patched' + - compiler: 'clang' + r-version: 'patched' + - compiler: 'clang' + r-version: 'release' include: - target-os: 'valgrind' compiler: 'gcc' @@ -122,20 +122,18 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} strategy: matrix: - # target-os: ['debian', 'fedora'] - target-os: ['debian'] + target-os: ['debian', 'fedora'] compiler: ['gcc', 'clang'] r-version: ['devel', 'release', 'patched'] exclude: - - target-os: 'debian' - # - target-os: 'fedora' - # r-version: 'release' - # - target-os: 'fedora' - # r-version: 'patched' - # - compiler: 'clang' - # r-version: 'patched' - # - compiler: 'clang' - # r-version: 'release' + - target-os: 'fedora' + r-version: 'release' + - target-os: 'fedora' + r-version: 'patched' + - compiler: 'clang' + r-version: 'patched' + - compiler: 'clang' + r-version: 'release' include: - target-os: 'valgrind' compiler: 'gcc'