This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: expose input field for the GitHub Token (#6)
- Loading branch information
Showing
3 changed files
with
42 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,30 +18,29 @@ Before you start, make sure that you have setup the supported version of Python | |
| =<3.6 | ❌ Not Supported | | ||
|
||
```yml | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
``` | ||
| Input | Required | Description | | ||
| ---------------------- | ----------------------------------- | ------------------ | | ||
| `source_dir` | ✅ Yes | Input directory | | ||
| `destination_dir` | ❌ No (default to `source_dir`) | Output directory | | ||
| `signing_key` | ❌ No | Signing key | | ||
| `commit_message` | ❌ No (default to `JSON Cleanup`) | Commit message | | ||
| `secrets.GITHUB_TOKEN` | ❌ No (default to GitHub's default) | GitHub's PAT token | | ||
| Input | Required | Description | | ||
| ----------------- | --------------------------------- | ------------------------------ | | ||
| `token` | ✅ Yes | GitHub's Personal Access Token | | ||
| `source_dir` | ✅ Yes | Input directory | | ||
| `destination_dir` | ❌ No (default to `source_dir`) | Output directory | | ||
| `signing_key` | ❌ No | Signing key | | ||
| `commit_message` | ❌ No (default to `JSON Cleanup`) | Commit message | | ||
|
||
```yml | ||
- name: Nested JSON Postprocessor | ||
uses: validcube/[email protected] | ||
with: | ||
source_dir: 'path/to/your/source/directory' # required, your input directory | ||
destination_dir: 'path/to/your/destination/directory' # optional, default to source_dir | ||
signing_key: 'your-signing-key' # optional, will skip signing if not provided | ||
commit_message: 'your-custom-commit-message' # optional, default to "JSON Cleanup" | ||
secrets: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # optional, default to GitHub's default | ||
- name: Nested JSON Postprocessor | ||
uses: validcube/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} # required, GitHub's Personal Access Token | ||
source_dir: "path/to/your/source/directory" # required, your input directory | ||
destination_dir: "path/to/your/destination/directory" # optional, default to source_dir | ||
signing_key: "your-signing-key" # optional, will skip signing if not provided | ||
commit_message: "your-custom-commit-message" # optional, default to "JSON Cleanup" | ||
``` | ||
|
||
## `> Postprocessor // Contributing` | ||
|
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