From 04233136c32eb391fe330a178f4abe84eca2388c Mon Sep 17 00:00:00 2001 From: "Mountain/\\Ash" Date: Mon, 11 Mar 2024 11:02:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ALIAS=5FDOMAINS=20allowed=20on?= =?UTF-8?q?=20PRs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- dist/index.js | 2 +- src/index.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index efb765d9..3342a1e9 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ - [x] Added [defaults](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions?learn=create_actions&learnProduct=actions#inputsinput_iddefault) - [x] Added GitHub Actions workflow to test the action - [x] See [CHANGELOG](./CHANGELOG.md) for many 📦 dependencies updates (inc. Node 20) -- [X] Remove need for `GITHUB_REPOSITORY` var passsing +- [x] `GITHUB_REPOSITORY` is no longer a required input (it can be deduced using the `GITHUB_TOKEN`) +- [x] Allow Vercel domain aliases to be set on PRs --- diff --git a/dist/index.js b/dist/index.js index 02c56444..666148f5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31307,7 +31307,7 @@ const run = async () => { deploymentUrls.push(addSchema(nextAlias)) } - if (!IS_PR && ALIAS_DOMAINS) { + if (ALIAS_DOMAINS) { core.info(`Assigning custom domains to Vercel deployment`) if (!Array.isArray(ALIAS_DOMAINS)) { diff --git a/src/index.js b/src/index.js index 89ac9df8..d8a3d486 100644 --- a/src/index.js +++ b/src/index.js @@ -107,7 +107,7 @@ const run = async () => { deploymentUrls.push(addSchema(nextAlias)) } - if (!IS_PR && ALIAS_DOMAINS) { + if (ALIAS_DOMAINS) { core.info(`Assigning custom domains to Vercel deployment`) if (!Array.isArray(ALIAS_DOMAINS)) {