My workflow has been disabled even if I use this action #35
-
Hi, Am I doing something wrong or is this a bug ? Every week, I run the v2 version of this action using a simple "Keep Alive" action: https://github.com/julienloizelet/ddev-tools/actions/workflows/keepalive.yml I use it so that another "test" action is not disabled: https://github.com/julienloizelet/ddev-tools/actions/workflows/tests.yml But, it has been disabled today: I don't see any error in the Keep Alive workflow: But despite this, the "test" action has been deactivated. Do you have an idea of what could be the reason of this behavior ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just found this release note: https://github.com/gautamkrishnar/keepalive-workflow/releases/tag/2.0.1 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 Thanks |
Beta Was this translation helpful? Give feedback.
-
@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 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" |
Beta Was this translation helpful? Give feedback.
@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 you need to keepalive.Check the example https://github.com/gautamkrishnar/keepalive-workflow?tab=readme-ov-file#advanced-use-cases