pullpreview / action

A GitHub Action that starts preview deployments for your pull requests and branches. It can work with any application that has a valid Docker Compose file.
https://pullpreview.com
Other
164 stars 13 forks source link

Fix deletion of instance when using deployment variants #42

Closed crohr closed 1 year ago

crohr commented 1 year ago

When using deployment variants, the first job to run will remove the pullpeview label from the PR, which means any other job will fail see the PR as being unlabelled and as such the job will be skipped. This PR fixes this by always testing whether the instance exists when a PR is closed/merged, and not relying on the presence/absence of the label.

It also introduces a way to customize the label to use, since this allows different workflows with different trigger rules to be used, based on the label. This came in handy to have both a single-env and a multi-env workflow for testing.