Skip to content
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

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

boegel
Copy link
Contributor

@boegel boegel commented Jun 5, 2024

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

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__))))
Copy link
Contributor Author

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

Copy link
Collaborator

@trz42 trz42 left a 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.

@boegel
Copy link
Contributor Author

boegel commented Jun 5, 2024

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.

Good point, fixed in 9ce8952

Copy link
Collaborator

@trz42 trz42 left a 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 🫣

@trz42 trz42 merged commit 49dedbd into EESSI:main Jun 5, 2024
1 check passed
@ocaisa
Copy link
Member

ocaisa commented Jun 5, 2024

Almost

The overview below shows which WRF installations are available per HPC-UGent Tier-2cluster,

@ocaisa
Copy link
Member

ocaisa commented Jun 5, 2024

Ah dispatch workflow, but still problems: https://github.com/EESSI/docs/actions/runs/9391493091/job/25863767460

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants