mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 12:57:44 +00:00
chore: update action import method in workflows to use dynamic import for better error handling
This commit is contained in:
2
.github/workflows/auto-release.yml
vendored
2
.github/workflows/auto-release.yml
vendored
@@ -70,7 +70,7 @@ jobs:
|
|||||||
echo "Checking built files..."
|
echo "Checking built files..."
|
||||||
ls -la dist/
|
ls -la dist/
|
||||||
echo "Testing action execution..."
|
echo "Testing action execution..."
|
||||||
node -e "console.log('Testing action import...'); require('./dist/action.js'); console.log('✅ Action loaded successfully')"
|
node -e "console.log('Testing action import...'); import('./dist/action.js').then(() => console.log('✅ Action loaded successfully')).catch(err => { console.error('❌ Action load failed:', err.message); process.exit(1); })"
|
||||||
|
|
||||||
- name: Get commit history
|
- name: Get commit history
|
||||||
id: commits
|
id: commits
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -75,7 +75,7 @@ jobs:
|
|||||||
echo "Checking built files..."
|
echo "Checking built files..."
|
||||||
ls -la dist/
|
ls -la dist/
|
||||||
echo "Testing action execution..."
|
echo "Testing action execution..."
|
||||||
node -e "console.log('Testing action import...'); require('./dist/action.js'); console.log('✅ Action loaded successfully')"
|
node -e "console.log('Testing action import...'); import('./dist/action.js').then(() => console.log('✅ Action loaded successfully')).catch(err => { console.error('❌ Action load failed:', err.message); process.exit(1); })"
|
||||||
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
id: bump
|
id: bump
|
||||||
|
|||||||
Reference in New Issue
Block a user