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
# Another example - short.example.com/gh/repo/path → github.com/myorg/repo/path
154
+
"gh/*":
155
+
url: "https://github.com/myorg/$1"
156
+
title: "GitHub shortcut"
157
+
```
158
+
122
159
## Examples
123
160
124
161
### Dry-run mode
@@ -161,11 +198,13 @@ Access the sync results in subsequent steps:
161
198
162
199
## Sync Behavior
163
200
164
-
The action performs a **full sync** between your YAML config and Short.io:
201
+
The action performs a **declarative sync** between your YAML config and Short.io:
165
202
166
203
1. **Create** - Links in YAML but not in Short.io are created
167
204
2. **Update** - Links where URL, title, or tags differ are updated
168
-
3. **Delete** - Links in Short.io but not in YAML are deleted
205
+
3. **Delete** - Links removed from YAML are deleted (only if previously managed by this action)
206
+
207
+
Links created by the action are tagged with `github-action-managed`. This ensures that manually created links in Short.io are never deleted—only links that were originally created through this action will be removed when deleted from the YAML config.
169
208
170
209
Links are identified by the combination of `domain` and `slug`. Changing a slug will result in the old link being deleted and a new one created.
0 commit comments