You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README and GitHub client to change repository description updates to homepage URL updates in one-entry mode. Add tests for the new homepage update functionality.
| `one-entry-mode` | Update repository homepage URL when only one page is created | No | `'false'` |
101
+
| `replace-existing-pages` | Reuse existing Telegraph pages instead of creating new ones | No | `'false'` |
102
102
103
103
## Outputs
104
104
@@ -109,13 +109,13 @@ jobs:
109
109
110
110
## One Entry Mode
111
111
112
-
When enabled with `one-entry-mode: "true"`, this feature automatically updates your repository description with the Telegraph URL when exactly one markdown file is processed. This is perfect for single-page documentation repositories, personal profiles, or project showcases.
112
+
When enabled with `one-entry-mode: "true"`, this feature automatically updates your repository homepage URL with the Telegraph URL when exactly one markdown file is processed. This is perfect for single-page documentation repositories, personal profiles, or project showcases.
113
113
114
114
### How One Entry Mode Works
115
115
116
116
1. **Enable the feature**: Set `one-entry-mode: "true"` in your workflow
117
117
2. **Single page detection**: When exactly one markdown file is processed, the action detects this scenario
118
-
3. **Repository update**: The GitHub repository description is automatically updated with the Telegraph page URL
118
+
3. **Repository update**: The GitHub repository homepage URL is automatically updated with the Telegraph page URL
119
119
4. **Permission handling**: Gracefully handles cases where the GitHub token lacks repository write permissions
120
120
121
121
### One Entry Mode Example
@@ -140,11 +140,11 @@ When enabled with `one-entry-mode: "true"`, this feature automatically updates y
140
140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141
141
```
142
142
143
-
**Result**: If only `README.md` is processed, your repository description will be automatically updated to point to the Telegraph page (e.g., `https://telegra.ph/My-Profile-12-15`).
143
+
**Result**: If only `README.md` is processed, your repository homepage URL will be automatically updated to point to the Telegraph page (e.g., `https://telegra.ph/My-Profile-12-15`).
144
144
145
145
### One Entry Mode Requirements
146
146
147
-
- **GITHUB_TOKEN**: Must be provided via `env` for repository description updates
147
+
- **GITHUB_TOKEN**: Must be provided via `env` for repository homepage updates
148
148
- The GitHub token must have `metadata: write` or `contents: write` permissions
149
149
- If permissions are insufficient, the action will show a warning but continue successfully
150
150
- Only works when exactly one markdown file is processed
`✅ Repository description updated with Telegraph URL: ${singlePage.telegraphUrl}`
199
+
`✅ Repository homepage URL updated with Telegraph URL: ${singlePage.telegraphUrl}`
202
200
);
203
201
}else{
204
202
core.warning(
205
-
"GitHub token does not have sufficient permissions to update repository description. Please ensure the token has 'metadata: write' or 'contents: write' permissions."
203
+
"GitHub token does not have sufficient permissions to update repository homepage URL. Please ensure the token has 'metadata: write' or 'contents: write' permissions."
206
204
);
207
205
}
208
206
}catch(error){
209
207
core.warning(
210
-
`Failed to update repository description in one entry mode: ${error}`
208
+
`Failed to update repository homepage URL in one entry mode: ${error}`
0 commit comments