GH OBS Helper v1.1.1
Release Notes
π GH OBS Helper Release v1.1.1
π Bug Fixes
β±οΈ Timeout Configuration Fix
- FIXED: TypeScript compilation error with timeout configuration
- Enhanced: Complete OBSConfig interface with all SDK-supported properties
- Improved: Better type safety for timeout and retry settings
π§ Technical Improvements
- Updated
OBSConfiginterface to include all optional properties:timeout?: number- Request timeout in secondsmax_retry_count?: number- Maximum retry attemptsregion?: string- OBS region specificationssl_verify?: boolean- SSL verification settingspath_style?: boolean- Path-style access configuration
π οΈ Usage Example with Timeout
- name: Upload with custom timeout
uses: diverger/[email protected]
with:
access_key: ${{ secrets.OBS_ACCESS_KEY }}
secret_key: ${{ secrets.OBS_SECRET_KEY }}
region: 'cn-north-4'
bucket: 'my-bucket'
operation: 'upload'
local_path: 'large-files/**/*'
timeout: 600 # 10 minutes for large files
retry_count: 5π Migration Notes
- No breaking changes from v1.1.0
- Timeout functionality now works correctly without TypeScript errors
- All existing workflows remain compatible
π GH OBS Helper Release v1.1.0
π― What's New
π URL Output Support
- NEW: Automatic URL generation for uploaded files
- Public files: Direct URLs for immediate access
- Private files: Pre-signed URLs with 1-hour validity
- Multiple outputs: Both individual and array formats
π€ Enhanced Outputs
upload_urls: JSON array of all uploaded file URLsfirst_upload_url: Direct access to the first uploaded file URL- Perfect for single file uploads and subsequent workflow steps
π οΈ Usage Examples
Basic Upload with URL Output
- name: Upload and get URL
id: upload
uses: diverger/[email protected]
with:
access_key: ${{ secrets.OBS_ACCESS_KEY }}
secret_key: ${{ secrets.OBS_SECRET_KEY }}
region: 'cn-north-4'
bucket: 'my-bucket'
operation: 'upload'
local_path: 'dist/app.js'
obs_path: 'releases/v1.1.0/'
public_read: true
- name: Use the uploaded file URL
run: |
echo "File available at: ${{ steps.upload.outputs.first_upload_url }}"
curl -I "${{ steps.upload.outputs.first_upload_url }}"π GH OBS Helper Release v1.0.0
π― What's New
- π₯ Download Functionality: Full download support with pattern matching and parallel processing
- π Advanced Object Listing: Efficient pagination for large buckets
- π― Pattern Filtering: Include/exclude patterns for downloads
- π Structure Preservation: Option to maintain directory structure during downloads
- π‘οΈ Checksum Validation: File integrity verification for downloads
π§ Features
- Download Operations: Download files from OBS buckets with wildcard support
- Parallel Downloads: Configurable concurrency for faster file retrieval
- Pattern Matching: Filter downloads using include/exclude patterns
- Retry Logic: Automatic retry for failed downloads with exponential backoff
- Dry Run Support: Preview download operations without executing
π Download Examples
Basic Download:
- name: Download files
uses: diverger/[email protected]
with:
access_key: ${{ secrets.OBS_ACCESS_KEY }}
secret_key: ${{ secrets.OBS_SECRET_KEY }}
region: 'cn-north-4'
bucket_name: 'my-bucket'
operation: 'download'
obs_path: 'releases/v1.0.0/'
local_path: 'downloaded/'Download with Patterns:
- name: Download specific files
uses: diverger/[email protected]
with:
access_key: ${{ secrets.OBS_ACCESS_KEY }}
secret_key: ${{ secrets.OBS_SECRET_KEY }}
region: 'cn-north-4'
bucket_name: 'my-bucket'
operation: 'download'
obs_path: 'backups/'
local_path: 'restored/'
include: '**/*.sql, **/*.json'
exclude: '**/*.tmp'
concurrency: 20π GH OBS Helper Release v1.0.0
π― What's New
- Standardized Parameter Names: Renamed
source/destinationtolocal_path/obs_pathfor clarity - Enhanced Build System: Automated build and release workflows
- Professional Development Setup: Complete CI/CD pipeline with TypeScript validation
π§ Changes
- BREAKING: Parameter names changed from
source/destinationtolocal_path/obs_path - Updated all workflow examples to use new parameter names
- Fixed action icon to use valid
upload-cloudicon
π Bug Fixes
- Fixed TypeScript compilation errors
- Corrected action.yml parameter validation
- Improved error handling in upload operations
π Migration Guide
If upgrading from earlier versions, update your workflow files:
Old:
with:
source: 'dist/**'
destination: 'releases/'New:
with:
local_path: 'dist/**'
obs_path: 'releases/'π οΈ Usage Example
- name: Upload to OBS
uses: diverger/[email protected]
with:
access_key: ${{ secrets.OBS_ACCESS_KEY }}
secret_key: ${{ secrets.OBS_SECRET_KEY }}
region: 'cn-north-4'
bucket: 'my-bucket'
operation: 'upload'
local_path: 'dist/**/*'
obs_path: 'releases/v1.0.0/'π Features
- High-performance uploads with unlimited file support
- Wildcard pattern matching (
*,**,?) - Parallel operations with configurable concurrency
- Support for upload, download, sync, and bucket operations
- Comprehensive error handling and retry logic
Full Changelog: v0.9.0...v1.0.0