riffy-team / riffy

Riffy is a pro lavalink client. It is designed to be simple and easy to use, with a focus on stability and more features.
MIT License
32 stars 5 forks source link

CI: add continuous (PREVIEW) releases #16

Closed UnschooledGamer closed 1 day ago

UnschooledGamer commented 1 day ago

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 commented 1 day ago

let's try Bypass check - PREVIEW RELEASE Label

pkg-pr-new[bot] commented 1 day ago

Open in Stackblitz

yarn add https://pkg.pr.new/riffy-team/riffy@16.tgz

commit: f95af79