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

CI: add continuous (PREVIEW) releases #16

Merged
merged 15 commits into from
Oct 22, 2024
Merged

CI: add continuous (PREVIEW) releases #16

merged 15 commits into from
Oct 22, 2024

Conversation

UnschooledGamer
Copy link
Member

Adds

https://github.com/stackblitz-labs/pkg.pr.new, that Allows continuous (PREVIEW) releases for PR (that's what we're using it for) ,

The condition is a combination of three parts, connected by logical OR operators (||):

  1. github.event.review.state == 'APPROVED' && !contains(github.event.pull_request.labels.name, 'DO NOT PREVIEW RELEASE')
    • Check if the review state is 'APPROVED' and the pull request does not have a label named 'DO NOT PREVIEW RELEASE'.
  2. contains(github.event.pull_request.labels.name, 'Bypass check - PREVIEW RELEASE')
    • Check if the pull request has a label named 'Bypass check - PREVIEW RELEASE'.
  3. (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.name, 'PR Manual CI RUN'))
    • Check if the event is a pull request and the pull request has a label named 'PR Manual CI RUN'.

If any of these conditions are true, the overall condition is true.

Code Explanation by AI!

@UnschooledGamer UnschooledGamer added the enhancement New feature or request label Oct 22, 2024
@UnschooledGamer UnschooledGamer self-assigned this Oct 22, 2024
@UnschooledGamer
Copy link
Member Author

let's try Bypass check - PREVIEW RELEASE Label

@UnschooledGamer UnschooledGamer added Bypass check - PREVIEW RELEASE Bypasses pre-run checks For Preview Release CI PR Manual CI RUN Label used to run a CI on a PR. and removed Bypass check - PREVIEW RELEASE Bypasses pre-run checks For Preview Release CI labels Oct 22, 2024
@UnschooledGamer UnschooledGamer added PR Manual CI RUN Label used to run a CI on a PR. and removed PR Manual CI RUN Label used to run a CI on a PR. labels Oct 22, 2024
@UnschooledGamer UnschooledGamer added PR Manual CI RUN Label used to run a CI on a PR. and removed PR Manual CI RUN Label used to run a CI on a PR. labels Oct 22, 2024
@UnschooledGamer UnschooledGamer added the Bypass check - PREVIEW RELEASE Bypasses pre-run checks For Preview Release CI label Oct 22, 2024
@UnschooledGamer UnschooledGamer added PR Manual CI RUN Label used to run a CI on a PR. and removed PR Manual CI RUN Label used to run a CI on a PR. labels Oct 22, 2024
Copy link

pkg-pr-new bot commented Oct 22, 2024

Open in Stackblitz

yarn add https://pkg.pr.new/riffy-team/[email protected]

commit: f95af79

@github-actions github-actions bot removed the PR Manual CI RUN Label used to run a CI on a PR. label Oct 22, 2024
@UnschooledGamer UnschooledGamer merged commit c2f70bc into main Oct 22, 2024
@UnschooledGamer UnschooledGamer deleted the add/workflows branch October 22, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bypass check - PREVIEW RELEASE Bypasses pre-run checks For Preview Release CI enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant