From 11aac271e737ae4c4b5060d7d75807b52a84005c Mon Sep 17 00:00:00 2001 From: jaimergp Date: Tue, 7 May 2024 11:36:02 +0200 Subject: [PATCH] Use keep alive in API mode in-workflow --- .github/workflows/ci.yaml | 10 ++++++++++ .github/workflows/keep-alive.yaml | 16 ---------------- 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/keep-alive.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5c7562a..1e90ab0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -160,3 +160,13 @@ jobs: destination_container_repo: quay.io/condaforge/${{ matrix.cfg.DOCKERIMAGE }}:${{ matrix.cfg.DOCKERTAG }} provider: quay readme_file: "${{ matrix.cfg.DOCKERFILE == '' && matrix.cfg.DOCKERIMAGE || matrix.cfg.DOCKERFILE }}/README.md" + + keepalive-job: + name: Keep alive + runs-on: ubuntu-latest + if: github.event_name == 'schedule' + permissions: + actions: write + steps: + - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4 + - uses: gautamkrishnar/keepalive-workflow@beb86212524e1ae856d1cd80efb44e73bf7daf4a # 2.0.1 diff --git a/.github/workflows/keep-alive.yaml b/.github/workflows/keep-alive.yaml deleted file mode 100644 index 74716cc..0000000 --- a/.github/workflows/keep-alive.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Keep -on: - # pull_request: - schedule: - - cron: "0 6 * * SUN" # Once weekly on Sunday @ 0600 UTC - -jobs: - keep-alive: - name: Alive - if: github.repository == 'conda-forge/docker-images' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 - - uses: gautamkrishnar/keepalive-workflow@beb86212524e1ae856d1cd80efb44e73bf7daf4a # 2.0.1 - with: - time_elapsed: 50 # days