-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Update Charm Pins | ||
|
||
## GitHub Actions Usage | ||
|
||
Inputs: | ||
|
||
- `workflows`: space or newline-separated list of workflow YAML files relative to this repository root | ||
- `gh-pat`: personal access token to query external repositories hosted at GitHub | ||
|
||
This action will update the `workflows` in the current checkout. It is the responsibility of the caller | ||
to do something with these changes. | ||
|
||
## Local Usage | ||
|
||
```command | ||
# set up a venv and install the deps | ||
pip install -r requirements.txt | ||
|
||
# set the GITHUB_TOKEN env var with a personal access token | ||
export GITHUB_TOKEN=ghp_0123456789 | ||
|
||
# run the script | ||
python main.py path-to/.github/workflows/one.yaml path-to/.github/workflows/another.yaml | ||
|
||
# check the modifications in the current branch | ||
git diff | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ruamel.yaml==0.18.6 | ||
httpx==0.27.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters