This tool helps you perform bulk operations on the GitHub Actions workflows among multiple repos and branches in a secure and convenient manner.
Currently, the only supported bulk operation is the runs-on
labels replacement.
To issue your GitHub fine-grained personal token, follow this official instruction.
Choose the desired organization, where you'd like to perform operations, and set the required token permission scopes:
- Repositories:
- Content:
Read and write
- Workflows:
Read and write
- Content:
- Organizations:
- Members:
Read-only
- Members:
- Make sure you have docker daemon up and running on your machine.
- Set the GitHub token, which you got on a previous step, in your shell environment:
export MY_PAT=github_pat_...
- Run the container using official
latest
image
docker run --rm -d -p 3131:3000 -e GITHUB_PERSONAL_ACCESS_TOKEN=$MY_PAT ghcr.io/puzl-cloud/github-workflow-assistant:latest
- Navigate to http://localhost:3131 to access the dashboard.
In the dashboard:
- Choose your organization.
It will start a shallow clone of .github/workflows
folder from all branches in all repos available for your GitHub Personal Access Token. The process might take a few minutes.
-
Once clone is done, create
runs-on
replacement rule and choose repos and branches where you want to replace labels. -
Review and commit your changes.
This operation will create commits in .github/workflows
files in all the chosen branches. Workflow execution will be skipped for all the commits.