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

Use env vars to disable WPT result builds #62

Merged
merged 1 commit into from
Dec 15, 2022
Merged

Conversation

jerivas
Copy link
Member

@jerivas jerivas commented Dec 15, 2022

Description

Use the ignore config to skip builds that don't end with --wpt-results. Since this repo is the source of both https://anchor-polyfill.netlify.app/ and https://anchor-position-wpt.netlify.app/, I also added support for a WPT_ONLY env var to disable the branch name matching. In the Netlify UI the variable exists only for the WPT site, so the main site continues building for all branches.

Steps to test/reproduce

I think we'll need to merge into main so Netlify picks up netlify.toml, because this branch is still being built by the WPT site and failing 🤷‍♂️

EDIT: Actually, it looks like it's working. The main site logs say the command allowed the build, and the WPT site logs say the build was canceled. The Netlify GH bot also seems to reflect that in the automated comments. More importantly, the GH checks are passing 👍

@netlify
Copy link

netlify bot commented Dec 15, 2022

Deploy Preview for anchor-position-wpt canceled.

Name Link
🔨 Latest commit 6481562
🔍 Latest deploy log https://app.netlify.com/sites/anchor-position-wpt/deploys/639b8358c9ab0e000880f336

@netlify
Copy link

netlify bot commented Dec 15, 2022

Deploy Preview for anchor-polyfill ready!

Name Link
🔨 Latest commit 6481562
🔍 Latest deploy log https://app.netlify.com/sites/anchor-polyfill/deploys/639b83580b96530008f38ac7
😎 Deploy Preview https://deploy-preview-62--anchor-polyfill.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@jerivas
Copy link
Member Author

jerivas commented Dec 15, 2022

Tests (including WPT)

@jgerigmeyer jgerigmeyer merged commit 7c5addf into main Dec 15, 2022
@jgerigmeyer jgerigmeyer deleted the wpt-skip-branch branch December 15, 2022 20:37
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.

2 participants