Skip to content

Commit

Permalink
👷 ALIAS_DOMAINS allowed on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
mountainash authored Mar 11, 2024
1 parent d252e95 commit 0423313
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0423313

Please sign in to comment.