Skip to content

Commit

Permalink
Update workflows to use new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Sep 23, 2020
1 parent c61c2db commit 5145b52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/on-push-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5145b52

Please sign in to comment.