From 5145b52b7edf5d62534a6dd21c5f6ce7ad53086a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ch=C5=82odnicki?= Date: Wed, 23 Sep 2020 11:03:17 +0200 Subject: [PATCH] Update workflows to use new actions --- .github/workflows/on-pull-request.yml | 16 +++++----------- .github/workflows/on-push-to-main.yml | 3 +-- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index bab4e7e..fbab57d 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -3,21 +3,13 @@ name: On PR on: [pull_request_target] jobs: - tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Run repository tests - run: python3 -m unittest tests/test.py - trigger-review: - needs: tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: - fetch-depth: 0 + fetch-depth: 0 + ref: refs/pull/${{ github.event.pull_request.number }}/merge # Ensures python3-setuptools is installed - name: Setup Python @@ -28,7 +20,9 @@ jobs: - name: Install Python dependencies run: python3 -m pip install pyyaml git+https://github.com/packagecontrol/st_package_reviewer.git@d2b43530442f227751c925d259df8fb324eee18f - - uses: sublimelsp/review-bot-action@v1 + - uses: sublimelsp/st-schema-reviewer-action@v1 + + - uses: sublimelsp/st-package-reviewer-action@v1 with: pr-url: ${{ github.event.pull_request.url }} base-sha: ${{ github.event.pull_request.base.sha }} diff --git a/.github/workflows/on-push-to-main.yml b/.github/workflows/on-push-to-main.yml index 42ac8f8..7d49c7d 100644 --- a/.github/workflows/on-push-to-main.yml +++ b/.github/workflows/on-push-to-main.yml @@ -11,5 +11,4 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Run repository tests - run: python3 -m unittest tests/test.py + - uses: sublimelsp/st-schema-reviewer-action@v1