From ecd4157b482a2584d93a90e2c5685017de96b643 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Fri, 12 Nov 2021 22:20:41 -0500 Subject: [PATCH] update CI --- .github/workflows/artifacts.yml | 20 ++++++++++++++++++++ .github/workflows/preview-apk.yml | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/artifacts.yml diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 000000000..eae676ad3 --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,20 @@ +name: add artifact links to pull request +on: + workflow_run: + workflows: ["Upload Preview APK"] + types: [completed] + +jobs: + artifacts-url-comments: + name: add artifact links to pull request + runs-on: windows-2019 + if: ${{ github.event.workflow_run.conclusion == 'success' }} + steps: + - name: add artifact links to pull request + uses: tonyhallett/artifacts-url-comments@v1.1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + prefix: 📦 Install this apk to test the changes in this pull request: + format: name + addTo: pull diff --git a/.github/workflows/preview-apk.yml b/.github/workflows/preview-apk.yml index c75d1989f..87692539e 100644 --- a/.github/workflows/preview-apk.yml +++ b/.github/workflows/preview-apk.yml @@ -7,6 +7,10 @@ jobs: name: Upload Preview APK runs-on: ubuntu-latest steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.9.1 + with: + access_token: ${{ github.token }} - uses: actions/checkout@v2 with: submodules: recursive