Skip to content

Refactor conditional syntax in workflow files#53

Merged
javidahmed64592 merged 1 commit intomainfrom
remove-brackets
Mar 6, 2026
Merged

Refactor conditional syntax in workflow files#53
javidahmed64592 merged 1 commit intomainfrom
remove-brackets

Conversation

@javidahmed64592
Copy link
Owner

This pull request updates several GitHub Actions workflow files to simplify the conditional logic used for selecting local versus remote actions. The main change is the removal of unnecessary ${{ }} syntax around if expressions, making the conditions more readable and consistent across all workflow files.

Workflow conditional simplification:

  • .github/workflows/ci.yml: Updated all if conditions to remove ${{ }} around github.event.repository.name checks for selecting between local and remote CI actions.
  • .github/workflows/build.yml: Simplified if conditions for build and verify-structure steps by removing ${{ }} wrappers.
  • .github/workflows/docker.yml: Applied the same simplification to all Docker-related workflow steps, including build, show logs, check containers, stop services, prepare-release, and check-repo-name jobs. [1] [2] [3]

These changes help make the workflow YAML easier to maintain and less error-prone by using native GitHub Actions syntax for conditionals.

@javidahmed64592 javidahmed64592 merged commit cc8ca1d into main Mar 6, 2026
12 checks passed
@javidahmed64592 javidahmed64592 deleted the remove-brackets branch March 6, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant