Ensure CI/CD workflows maintain reliability by following these practices: 1. **Use explicit script paths** - Always use explicit paths when invoking scripts (e.g., `./build.ps1` for PowerShell or `./build.sh` for bash) rather than relying on implicit path resolution. This ensures the runner can locate and execute scripts regardless of the current working...
Ensure CI/CD workflows maintain reliability by following these practices:
Use explicit script paths - Always use explicit paths when invoking scripts (e.g., ./build.ps1
for PowerShell or ./build.sh
for bash) rather than relying on implicit path resolution. This ensures the runner can locate and execute scripts regardless of the current working directory.
name: Build packages (Windows) run: ./scripts/build-packages.ps1
name: Build packages (Unix) run: ./scripts/build-packages.sh ```
name: Set permissions run: chmod +x ./build.sh
name: Build run: ./build.sh ```
These practices will prevent common CI/CD failures and improve workflow reliability across different environments and contributor scenarios.
Enter the URL of a public GitHub repository