rwx/update-packages-github 2.2.0
Update RWX packages for GitHub repositories
Parameters
README.md
Update the versions of RWX packages used in a GitHub repository. When updates are available, create or update a pull request.
The provided github-token should be for a
private GitHub App
with repository permissions for:
- Contents: read and write
- Pull Requests: read and write
If you would like to automatically create the label, additionally provide:
- Issues: read and write
- Projects: read only (see github/cli discussion)
To update minor versions (recommended):
tasks:
- key: update-rwx-packages
call: rwx/update-packages-github 2.2.0
with:
repository: https://github.com/YOUR-ORG/YOUR-REPO.git
ref: ${{ init.commit-sha }}
github-token: ${{ vaults.your-vault.github-apps.your-github-app.token }}
Customize the label:
tasks:
- key: update-rwx-packages
call: rwx/update-packages-github 2.2.0
with:
repository: https://github.com/YOUR-ORG/YOUR-REPO.git
ref: ${{ init.commit-sha }}
github-token: ${{ vaults.your-vault.github-apps.your-github-app.token }}
label: rwx-updates
label-color: "298F21"
Create a draft pull request:
By default, the pull request is ready for review. Set draft to true to create
it as a draft. If a matching pull request is already open, the package changes
it to the configured state.
tasks:
- key: update-rwx-packages
call: rwx/update-packages-github 2.2.0
with:
repository: https://github.com/YOUR-ORG/YOUR-REPO.git
ref: ${{ init.commit-sha }}
github-token: ${{ vaults.your-vault.github-apps.your-github-app.token }}
draft: true
Enable auto-merge:
Enables auto-merge on the pull request. The PR will automatically merge once all requirements are met: status checks pass, approvals are received, and branch protection rules are satisfied. Requires repository auto-merge support.
tasks:
- key: update-rwx-packages
call: rwx/update-packages-github 2.2.0
with:
repository: https://github.com/YOUR-ORG/YOUR-REPO.git
ref: ${{ init.commit-sha }}
github-token: ${{ vaults.your-vault.github-apps.your-github-app.token }}
enable-auto-merge: true