Skip to content

Commit 43dd3f7

Browse files
committed
reuse App repo const
1 parent 8eb5abf commit 43dd3f7

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/javascript/createOrUpdateStagingDeploy/createOrUpdateStagingDeploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async function run(): Promise<IssuesCreateResponse | void> {
9292
}
9393
} catch (error) {
9494
// Check if this is a forked repository
95-
if (process.env.GITHUB_REPOSITORY !== 'Expensify/App') {
95+
if (process.env.GITHUB_REPOSITORY !== CONST.APP_REPO) {
9696
console.warn(
9797
"⚠️ Unable to fetch Mobile-Expensify PRs because this workflow is running on a forked repository and secrets aren't accessable. This is expected for development/testing on forks.",
9898
);

.github/actions/javascript/getDeployPullRequestList/getDeployPullRequestList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function run() {
7272
console.log('Found Mobile-Expensify pull request list: ', mobileExpensifyPRList);
7373
} catch (error) {
7474
// Check if this is a forked repository
75-
if (process.env.GITHUB_REPOSITORY !== 'Expensify/App') {
75+
if (process.env.GITHUB_REPOSITORY !== CONST.APP_REPO) {
7676
console.warn(
7777
"⚠️ Unable to fetch Mobile-Expensify PRs because this workflow is running on a forked repository and secrets aren't accessible. This is expected for development/testing on forks.",
7878
);

.github/actions/javascript/markPullRequestsAsDeployed/markPullRequestsAsDeployed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function commentStagingDeployPRs(
8686
} catch (error) {
8787
if ((error as RequestError).status === 404) {
8888
console.log(`Unable to comment on ${repoName} PR #${prNumber}. GitHub responded with 404.`);
89-
} else if (repoName === CONST.MOBILE_EXPENSIFY_REPO && process.env.GITHUB_REPOSITORY !== 'Expensify/App') {
89+
} else if (repoName === CONST.MOBILE_EXPENSIFY_REPO && process.env.GITHUB_REPOSITORY !== CONST.APP_REPO) {
9090
console.warn(`Unable to comment on ${repoName} PR #${prNumber} from forked repository. This is expected.`);
9191
} else {
9292
throw error;
@@ -179,7 +179,7 @@ async function run() {
179179
});
180180
mobileExpensifyRecentTags = response.data;
181181
} catch (error) {
182-
if (process.env.GITHUB_REPOSITORY !== 'Expensify/App') {
182+
if (process.env.GITHUB_REPOSITORY !== CONST.APP_REPO) {
183183
console.warn('Unable to fetch Mobile-Expensify tags from forked repository. This is expected.');
184184
} else {
185185
console.error('Failed to fetch Mobile-Expensify tags:', error);

0 commit comments

Comments
 (0)