diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5503bd..9d6b450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ on: env: path: target/TCLobbySwitcher.jar name: TCLobbySwitcher.jar - build: build-${{ github.run_number }} + build: Build-${{ github.run_number }} jobs: build: @@ -20,6 +20,15 @@ jobs: runs-on: ubuntu-latest steps: + - name: Send start telegram notification + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + disable_web_page_preview: true + message: ${{ env.name }} build triggered from ${{ github.event_name }} by ${{ github.actor }}. + + - uses: actions/checkout@v2 - name: Set up JDK 1.8 @@ -49,11 +58,10 @@ jobs: asset_name: ${{ env.name }} asset_content_type: application/java-archive - - name: Send telegram notification + - name: Send finish telegram notification uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} disable_web_page_preview: true - message: ${{ env.name }} ${{ env.build }} successful finished. Released at ${{ steps.create_release.outputs.html_url }} - + message: ${{ env.build }} from ${{ env.name }} successfully finished. Released at ${{ steps.create_release.outputs.html_url }} diff --git a/TCLobbySwitcher.iml b/TCLobbySwitcher.iml index 78b2cc5..a05959d 100644 --- a/TCLobbySwitcher.iml +++ b/TCLobbySwitcher.iml @@ -1,2 +1,24 @@ - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file