diff --git a/.github/workflows/v-next.yml b/.github/workflows/v-next.yml index 101a005..c3abdef 100644 --- a/.github/workflows/v-next.yml +++ b/.github/workflows/v-next.yml @@ -21,13 +21,7 @@ jobs: - uses: actions/checkout@v4 - run: git pull - - run: rush install - - run: rush build - # continue-on-error: true - - - name: restart pm2 - if: always() - run: pm2 restart v-next + - run: bash ./update.sh - name: Nofity to ntfy if: always() - run: curl -d "🚀 v-next project restart success!!!" ntfy.sh/aaron-conlon + run: curl -d "🚀 v-next project restart..." ntfy.sh/aaron-conlon diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..355c523 --- /dev/null +++ b/update.sh @@ -0,0 +1,5 @@ +git pull +rush install +rush build +pm2 restart 0 +echo "v-next updated and restarted"