This commit is contained in:
lordwelch 2022-01-16 18:59:44 -08:00
parent 461a951126
commit ba638f545f
2 changed files with 19 additions and 2 deletions

View File

@ -16,10 +16,18 @@ jobs:
os: [ubuntu-latest]
steps:
- uses: actions/download-artifact@v2
with:
name: pr
- name:
id: pr
run: pr=$(cat pr);echo "::set-output name=pr::$pr"
- uses: actions/checkout@v2
with:
fetch-depth: 1
ref: refs/remotes/pull/${{pull}}/merge
ref: refs/remotes/pull/${{steps.pr.pr}}/merge
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
@ -39,6 +47,7 @@ jobs:
- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: "."
- name: Annotate black diff changes using reviewdog

View File

@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1
ref: refs/remotes/pull/${{pull}}/merge
ref: refs/remotes/pull/${{ github.event.number }}/merge
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
@ -40,3 +40,11 @@ jobs:
with:
name: "${{ format('ComicTagger-{0}', runner.os) }}"
path: isort.out
- name: Save PR number
run: |
mkdir -p ./pr
echo ${{ github.event.number }} > ./pr
- uses: actions/upload-artifact@v2
with:
name: pr
path: pr