Giter VIP home page Giter VIP logo

Comments (2)

julienloizelet avatar julienloizelet commented on July 18, 2024

I just found this release note: https://github.com/gautamkrishnar/keepalive-workflow/releases/tag/2.0.1
and I think I've found the cause of my problem.

As I started using this action with the dummy commit of v1, it was already working to have a separate "keep alive" workflow: all scheduled workflows were kept alive as a new commit was detected.

With the v2, if we use a separate "keep alive" workflow, we have to specify which workflow we want to keep active ?

Please let me know if I'm right. If it is correct, maybe it could useful to update this part of the README: https://github.com/gautamkrishnar/keepalive-workflow/?tab=readme-ov-file#migrating-from-v1-to-v2
(because a separate workflow file worked with the v1 and migrating to v2 involves managing a workflow_files input)

Thanks

from keepalive-workflow.

gautamkrishnar avatar gautamkrishnar commented on July 18, 2024

@julienloizelet yes you are right. With v2 you need to add it to every individual workflows you want to keep alive. Or you can also simply use workflow_files to manually specify multiple workflows.

Check the example https://github.com/gautamkrishnar/keepalive-workflow?tab=readme-ov-file#advanced-use-cases

name: Keepalive Workflow
on:
  schedule:
    - cron: "0 0 * * *"
permissions:
  actions: write
jobs:
  cronjob-based-github-action:
    name: Keepalive Workflow
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: gautamkrishnar/keepalive-workflow@v2
        with:
          workflow_files: "build1.yml, build2.yml"
          time_elapsed: "0"

from keepalive-workflow.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.