From b97ed10612007ffd4eda29bca3ef525adffedb67 Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Fri, 4 Jun 2021 14:34:47 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=E2=80=98Build=20debug=20APK=E2=80=99=20Act?= =?UTF-8?q?ion:=20Create=20changelog=20for=20each=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_debug_apk.yml | 41 ++++++++++++++++++--------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_debug_apk.yml b/.github/workflows/build_debug_apk.yml index 4c7dc50e88..06c6fccc40 100644 --- a/.github/workflows/build_debug_apk.yml +++ b/.github/workflows/build_debug_apk.yml @@ -7,19 +7,8 @@ on: - 11-dev jobs: - send-start-notification: - runs-on: ubuntu-latest - continue-on-error: true - steps: - - name: Send start notification - uses: appleboy/telegram-action@v0.1.0 - with: - to: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }} - token: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }} - message: New push to “11-dev”. Building debug APK… build-debug-apk: runs-on: ubuntu-latest - needs: send-start-notification continue-on-error: true steps: - name: Check out repository @@ -56,7 +45,7 @@ jobs: with: name: Debug APK path: ${{ steps.sign-debug-apk.outputs.signedReleaseFile }} - send-end-notification: + send-apk: runs-on: ubuntu-latest needs: build-debug-apk steps: @@ -66,10 +55,34 @@ jobs: name: Debug APK path: artifacts/debug-apk - uses: technote-space/workflow-conclusion-action@v2.1.5 - - name: Send notification + - name: Send APK uses: appleboy/telegram-action@v0.1.0 with: to: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }} token: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }} document: artifacts/debug-apk/**.apk - message: Build finished with status “${{ env.WORKFLOW_CONCLUSION }}”. Uploading APK if available… + send-changelog: + runs-on: ubuntu-latest + needs: send-apk + steps: + - name: Check out repository + uses: actions/checkout@v2.3.4 + with: + submodules: true + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install Python packages + uses: BSFishy/pip-action@v1 + with: + packages: | + gitpython + requests + - name: Send changelog + run: send_changelog.py + env: + GITHUB_EVENT_BEFORE: ${{ github.event.before }} + GITHUB_SHA: ${{ github.sha }} + TELEGRAM_CI_BOT_TOKEN: ${{ secrets.TELEGRAM_CI_BOT_TOKEN }} + TELEGRAM_CI_CHANNEL_ID: ${{ secrets.TELEGRAM_CI_CHANNEL_ID }} From 480ab5a0a6219ca15f7d5571fb3ff7b542802a2b Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Fri, 4 Jun 2021 14:43:49 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=80=98Build=20debug=20APK=E2=80=99=20Act?= =?UTF-8?q?ion:=20Fix=20`send-changelog`=20Job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_debug_apk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_debug_apk.yml b/.github/workflows/build_debug_apk.yml index 06c6fccc40..463ab0df34 100644 --- a/.github/workflows/build_debug_apk.yml +++ b/.github/workflows/build_debug_apk.yml @@ -80,7 +80,7 @@ jobs: gitpython requests - name: Send changelog - run: send_changelog.py + run: python send_changelog.py env: GITHUB_EVENT_BEFORE: ${{ github.event.before }} GITHUB_SHA: ${{ github.sha }} From 8e8a14f9f67e2b387180dcc4bd6ec0acbebfc716 Mon Sep 17 00:00:00 2001 From: Patryk Michalik Date: Fri, 4 Jun 2021 14:52:10 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=E2=80=98Build=20debug=20APK=E2=80=99=20Act?= =?UTF-8?q?ion:=20Fetch=20full=20history=20for=20`send-changelog`=20Job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_debug_apk.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build_debug_apk.yml b/.github/workflows/build_debug_apk.yml index 463ab0df34..da8c35da32 100644 --- a/.github/workflows/build_debug_apk.yml +++ b/.github/workflows/build_debug_apk.yml @@ -69,6 +69,7 @@ jobs: uses: actions/checkout@v2.3.4 with: submodules: true + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v2 with: