-
Notifications
You must be signed in to change notification settings - Fork 35
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
add workflow to update overview of available software #189
Conversation
root_dir = next( | ||
p for p in current_dir.parents if p.parts[-1] == project_name | ||
) | ||
root_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__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.
I changed this because the available_software.py
script was failing in a checkout my fork, because the top-level directory there was EESSI-docs
rather than docs
.
I don't see the need to use pathlib
here, it makes the code a whole lot more messy and hard to understand, imho
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.
Nice! I'd suggest to use specific commits for the actions (and allow only those if they are not yet allowed), but other than that no specific comments.
…of available software
Good point, fixed in 9ce8952 |
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.
Let's try it 🫣
Almost
|
Ah dispatch workflow, but still problems: https://github.com/EESSI/docs/actions/runs/9391493091/job/25863767460 |
For now, I've only listed
workflow_dispatch
as a trigger, which essentially means that triggering the creation of a PR will only happen when someone runs the workflow via https://github.com/EESSI/docs/blob/main/.github/workflows/update_available_software.yml .I prefer taking that approach initially, before we enable daily (or whatever) runs of this workflow to automatically get a PR opened when the overview of available software needs to be updated...
The token (available as GitHub Action environment secret in this repo as
EESSIBOT_GITHUB_TOKEN
) is currently valid until 4 Aug'24, we'll need to make sure it gets replaced regularly (out of abundance of care).Example of a pull request that is produced by this workflow (which was tweaked to use the
boegelbot
account and target my fork @boegel/EESSI-docs
: boegel#2