From 859709db69486e632734598da484e5f0f0d6f3e0 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Wed, 7 Feb 2024 22:05:04 +0800 Subject: [PATCH] [ci] add trigger redeploy job --- .forgejo/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 7928d77..05cc6fb 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,6 +1,6 @@ on: [push] jobs: - upload-one: + build-uberjar: container: image: docker.io/southfox09/cl-builder:latest @@ -43,3 +43,12 @@ jobs: with: name: uberjar path: target/*-standalone.jar + + trigger-redeploy: + needs: [build-uberjar] + runs-on: docker + steps: + - uses: actions/webhook@v2 + with: + webhook_url: ${{ secrets.WEBHOOK_URL }} + data: '{ "run_number": ${{ env.GITHUB_RUN_NUMBER }} }'