From d8398f186ebed18f53c14b4e5a8eaf1904f6f4b2 Mon Sep 17 00:00:00 2001 From: Dean Reinhardt Date: Tue, 10 Aug 2021 13:57:31 +0200 Subject: [PATCH 1/4] update telegram message --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f5503bd..0e11041 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,5 +55,4 @@ jobs: 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.name }} build triggered by ${{ github.event_name }}. ${{ env.build }} successfully finished. Released at ${{ steps.create_release.outputs.html_url }} From d1c6ffb016fc9701235c4403d9135ec51e25082b Mon Sep 17 00:00:00 2001 From: Dean Reinhardt Date: Tue, 10 Aug 2021 13:59:39 +0200 Subject: [PATCH 2/4] Build uppercase --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e11041..b000b15 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: From ebe7a8a68315237e834349bb55370a29fb8d4726 Mon Sep 17 00:00:00 2001 From: deanomus Date: Tue, 10 Aug 2021 14:07:57 +0200 Subject: [PATCH 3/4] adjust telegram message in github workflow --- .github/workflows/build.yml | 15 ++++++++++++--- TCLobbySwitcher.iml | 24 +++++++++++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b000b15..9aed09c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - 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 uses: actions/setup-java@v1 @@ -49,10 +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 }} build triggered by ${{ github.event_name }}. ${{ env.build }} successfully 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 From 269aad9b944c56355f7337f954f75bd55e8aaffe Mon Sep 17 00:00:00 2001 From: deanomus Date: Tue, 10 Aug 2021 14:36:22 +0200 Subject: [PATCH 4/4] fix formatting --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9aed09c..9d6b450 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,16 +20,16 @@ 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 }}. + - 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 + - uses: actions/checkout@v2 - name: Set up JDK 1.8 uses: actions/setup-java@v1