From 29902e00360e40bdccc3b4a013e9376ccf929c43 Mon Sep 17 00:00:00 2001 From: xiehaijun Date: Sun, 27 Jul 2025 09:54:56 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/demo.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 发布生产 --- .gitea/workflows/demo.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 4eea6db..55270ff 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -115,7 +115,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - name: 执行远程 SSH 命令 + - run: echo "Deploying build ${{ needs.build.outputs.build_id }}" + - name: 执行远程SSH命令 uses: appleboy/ssh-action@v1 env: FOO: "BAR" @@ -138,4 +139,10 @@ jobs: - name: 列出工作目录列表 run: | ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file + - run: echo "🍏 This job's status is ${{ job.status }}." + debug: + needs: [build, deploy] + runs-on: ubuntu-latest + if: ${{ failure() }} + steps: + - run: echo "Failed to build and deploy" \ No newline at end of file