mirror of
https://github.com/apple/container.git
synced 2026-09-10 17:55:38 +00:00
# Refactor GitHub Actions Workflow: Containerization Build ## 🛠 Summary This PR introduces several important improvements and cleanups to the build-containerization-template GitHub Actions workflow for better maintainability, correctness, and readability. ### 🔧 Changes Made #### 1. ✅ Fix invalid conditional syntax - **!= is not supported in expressions** with **if**: in GitHub Actions. - Only logical operators like !, &&, || are valid. #### 2. ✅ Globalized environment variables - Moved CURRENT_SDK and DEVELOPER_DIR to the job-level env: block to: - Avoid redundancy across steps - Make the workflow more maintainable ### 3. ✅ Replaced `secrets.GITHUB_TOKEN` with `github.token` - Prefer github.token for GitHub-provided auth token to improve clarity and scoping. @katiewasnothere