PR
This commit is contained in:
parent
461a951126
commit
ba638f545f
11
.github/workflows/CI.yaml
vendored
11
.github/workflows/CI.yaml
vendored
@ -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
|
||||
|
10
.github/workflows/build.yaml
vendored
10
.github/workflows/build.yaml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user