Skip to content

Commit

Permalink
Merge pull request #273 from BY-juun/master
Browse files Browse the repository at this point in the history
Feature: Modify server deployment github action to run only when production pr is closed
  • Loading branch information
june-by authored Nov 14, 2023
2 parents 05c010a + d15f814 commit 9d1ad76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/server_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: dev branch auto ci process script

on:
pull_request:
branches: [production]
branches: production
types:
- closed

jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion server/build/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function default_1() {
app.use(passport_1.default.session());
app.set("trust proxy", 1);
app.use("/test", (req, res, next) => {
res.send("github action deploy test33");
res.send("github action deploy test44");
});
_routes_1.default.forEach(({ url, router }) => {
app.use(url, router);
Expand Down
2 changes: 1 addition & 1 deletion server/src/config/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default async function () {
app.set("trust proxy", 1);

app.use("/test", (req, res, next) => {
res.send("github action deploy test33");
res.send("github action deploy test44");
});

ROUTER_LIST.forEach(({ url, router }) => {
Expand Down

1 comment on commit 9d1ad76

@vercel
Copy link

@vercel vercel bot commented on 9d1ad76 Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.