Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing if syntax in periodic push workflow #188

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

jerinphilip
Copy link
Contributor

@jerinphilip jerinphilip commented Jun 4, 2021

When you use expressions in an if conditional, you may omit the expression syntax (${{ }}) because GitHub automatically evaluates the if conditional as an expression, unless the expression contains any operators. If the expression contains any operators, the expression must be contained within ${{ }} to explicitly mark it for evaluation. For more information about if conditionals, see "Workflow syntax for GitHub Actions."

https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#about-contexts-and-expressions

Copying over from https://github.com/jerinphilip/gh-workflow-multi-repo-sync-mirror/blob/3ccc0f66ba97e9a3662ade8f9a5e1c421529df0a/.github/workflows/mirror.yml#L23, should work hopefully.

@jerinphilip jerinphilip changed the title Fixing if syntax with YAML var subsitution Fixing if syntax with YAML var substitution Jun 4, 2021
@jerinphilip jerinphilip changed the title Fixing if syntax with YAML var substitution Fixing if syntax in periodic push workflow Jun 4, 2021
@XapaJIaMnu XapaJIaMnu merged commit 3039dea into browsermt:main Jun 9, 2021
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.

None yet

3 participants