Skip to content

Commit 867326d

Browse files
committed
Merge branch 'main' into release
2 parents 03d378c + 1cce2c6 commit 867326d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/scripts/check-deploy-permissions.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ export default async function checkDeployPermissions({ core, context }: AsyncFun
3939
return;
4040
}
4141

42+
if (context.eventName === 'push') {
43+
const branch = context.ref
44+
const allowed = ['refs/heads/main', 'refs/heads/release'];
45+
46+
if (allowed.includes(branch)) {
47+
core.setOutput('should-deploy', 'true');
48+
core.info(`Deployment allowed: Push to ${branch}`);
49+
return;
50+
}
51+
}
52+
4253
// no deployment for other events
4354
core.setOutput('should-deploy', 'false');
4455
core.info('Deployment not triggered for this event type');

frontend/app/stores/banner-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function parseProfileFromStorage(profileId: ProfileId): BannerProfile | null {
158158
return profile
159159
} catch (error) {
160160
console.warn(
161-
`Failed to load profile ${profileId} from localStorage:`,
161+
`Failed to load profile ${profileId} from localStorage: `,
162162
error,
163163
)
164164
localStorage.removeItem(storageKey)

0 commit comments

Comments
 (0)