-
Notifications
You must be signed in to change notification settings - Fork 59
chore(refactor) - refactor main.yml #481
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
Conversation
|
✅ Deploy Preview for stacks-editor ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
.github/workflows/main.yml
Outdated
| release: | ||
| name: Release | ||
| if: github.ref == 'refs/heads/main' | ||
| name: ${{ github.ref == 'refs/heads/main' && 'Release' || 'Release Beta'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like this work as expected @ttaylor-stack. See this screenshot from the UI checks in the PR

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not entirely sure though why it is not working. One small suggestion (which won't help to fix this specific issue) is to check for the beta branch instead.
${{ github.ref == 'refs/heads/beta' && 'Release Beta' || 'Release' }}
I’m suggesting this because I believe it’s preferable to use Release as the fallback. For instance, in PRs the check will be named with the generic Release even if it isn’t executed.
giamir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ready to be tested. Thanks @ttaylor-stack
* chore(refactor) - refactor main.yml (#481) * refactor main.yaml * change empty string to null * update name * refactor: update condition * test change * update name * create changeset
Closes SPARK-13.
Describe your changes
merge release and release_beta into 1 job
PR Checklist
/** ... */docsbug/enhancementand other labels as appropriateEnvironment(s) tested
Additional context
Add any other context about the PR here.