Reusable workflows and actions for XRPLF repos
cleanup-workspace: Cleans up the GitHub Actions workspace, should be used for self-hosted runners before running any steps.get-nproc: Retrieves the number of processing units available on the runner.prepare-runner: Prepares the GitHub Actions runner environment for subsequent steps.
pre-commit.yml: Runspre-commitchecks on code changes.pre-commit-autoupdate.yml: Runspre-commit autoupdateto update pre-commit hooks.
A Python script to update hash references to XRPLF/actions in GitHub workflow/actions YAML files.
This script searches for references like:
XRPLF/actions/get-nproc@<hash>XRPLF/actions/.github/workflows/pre-commit.yml@<hash>
Then updates them with the latest commit hash that modified the referenced directory.
Usage:
# Dry run (show what would be updated)
python3 update_hashes.py --dry-run /path/to/directoryArguments:
--dry-run: Show what would be updated without making changes (optional)- Path to the git directory (positional argument)