frenchvandal/Aliyun OSS CDN Sync Action
Upload local files to Aliyun OSS and run CDN actions for uploaded paths
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 10, 2026
- License
- MIT
Pinned Snippet
uses: frenchvandal/aliyun-oss-cdn-sync-action@a6d41bfbf8dc5871cbbffde788c7b357f6a493f3 # v1.0.14tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| role-oidc-arn | RAM role ARN used with GitHub OIDC (for example acs:ram::USER_Id:role/ROLE_NAME) | yes | — |
| oidc-provider-arn | OIDC provider ARN (for example acs:ram::USER_Id:oidc-provider/PROVIDER_NAME) | yes | — |
| audience | Optional OIDC token audience; when set, the action calls core.getIDToken(audience) | no | — |
| role-session-expiration | Role session duration in seconds (900 to 43200) | no | 900 |
| role-session-name | Role session name (2-64 characters, only letters, digits, hyphens, underscores, dots, at signs, or equals signs) | no | github-action-session |
| refresh-sts-token-interval-seconds | Interval in seconds for OSS STS auto-refresh callbacks (must be lower than role-session-expiration) | no | 300 |
| input-dir | Local directory to upload | no | _site |
| bucket | OSS bucket name | yes | — |
| region | OSS region (for example oss-cn-hangzhou) | yes | — |
| destination-prefix | Prefix inside the bucket where files are uploaded | no | "" |
| overwrite | Overwrite objects if they already exist | no | true |
| max-concurrency | Number of parallel uploads | no | 5 |
| api-rps-limit | Global API throttle per execution (must be <= 10000) | no | 9000 |
| endpoint | Custom OSS endpoint (optional) | no | — |
| sdk-timeout-ms | Timeout in milliseconds for individual OSS and CDN SDK calls | no | 60000 |
| build-command | Local build command executed before any OSS upload or CDN action | no | deno task build |
| cache-enabled | Enable or disable restore of the local _cache directory before the build command runs | no | true |
| cache-key | Primary cache key for the local _cache directory. You can use expressions such as hashFiles(...) and should provide a fallback when no files match. | no | "" |
| cache-restore-keys | Newline-separated restore key prefixes for the local _cache directory | no | "" |
| cdn-enabled | Enable or disable CDN actions (set to false to temporarily bypass CDN without removing configuration) | no | false |
| cdn-actions | CDN actions (supported values: refresh or refresh,preload). If empty or invalid and CDN is enabled, defaults to refresh. | no | — |
| cdn-base-url | Base URL used to build full CDN object URLs | no | — |
| cdn-endpoint | Custom CDN API endpoint (optional) | no | — |
Outputs
| name | description |
|---|---|
| uploaded-count | Number of uploaded files |
| skipped-count | Number of skipped files |
| failed-count | Number of files that failed to upload after retries |
| total-files | Number of discovered files in input-dir |
| bucket | Target bucket name |
| destination-prefix | Target prefix used for upload |
| cdn-refresh-task-ids | Comma-separated CDN refresh task IDs |
| cdn-preload-task-ids | Comma-separated CDN preload task IDs |