From 819cbb85ec6299b33d88094cc0e0dcee58c5cf71 Mon Sep 17 00:00:00 2001 From: tianxiu2b2t <95091178+tianxiu2b2t@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:36:01 +0800 Subject: [PATCH] Create ttb-workflows.yml --- .github/workflows/ttb-workflows.yml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ttb-workflows.yml diff --git a/.github/workflows/ttb-workflows.yml b/.github/workflows/ttb-workflows.yml new file mode 100644 index 0000000..a4bc27a --- /dev/null +++ b/.github/workflows/ttb-workflows.yml @@ -0,0 +1,36 @@ +name: 'Update TTB-Network' + +on: + push: + branches: [ main ] + pull_request: + branches: [ '**' ] + +jobs: + push: + runs-on: ubuntu-latest + if: github.event_name == 'push' + steps: + - name: Trigger server refresh + uses: tyrrrz/action-http-request@master + with: + url: https://bangbang93.ttb-network.top:4000/refresh + - name: Response + run: | + echo "Status: ${{ steps.request.outputs.status }}" + echo "Body: ${{ steps.request.outputs.body }}" + + pull_request: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + steps: + - name: Trigger server pr notice + uses: tyrrrz/action-http-request@master + with: + url: https://bangbang93.ttb-network.top:4000/github/pulls + headers: + Authorization: Bearer ${{secrets.BANGBANG93_PR_TOKEN}} + - name: Response + run: | + echo "Status: ${{ steps.request.outputs.status }}" + echo "Body: ${{ steps.request.outputs.body }}"