-
Notifications
You must be signed in to change notification settings - Fork 0
(fix): new keep alive workflow #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -106,5 +106,11 @@ jobs: | |||
permissions: | |||
actions: write | |||
steps: | |||
- uses: actions/checkout@v4 | |||
- uses: gautamkrishnar/keepalive-workflow@v2 | |||
- name: Re-enable workflow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you still need a checkout or hardcode the name of the yml file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain why? I don't see anything that would necessitate it so I'd like to understand what I'm missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the original action additionally has
case "${GITHUB_WORKFLOW_REF:?}" in
"${GITHUB_REPOSITORY:?}"/.github/workflows/*.y*ml@*) ;;
*) false ;;
esac
which somehow globs for the yml files. Now that I look at it again, I'm not sure it's required.
In any case ${workflow}
in the API call should be the name of the workflow yml file. But I'm not really sure what the expression ${GITHUB_WORKFLOW_REF%%@*}
evaluates to.
Co-authored-by: Gregor Sturm <mail@gregor-sturm.de>
No description provided.