From ba638f545f36229bb904fd27f0985ba65983f368 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Sun, 16 Jan 2022 18:59:44 -0800 Subject: [PATCH] PR --- .github/workflows/CI.yaml | 11 ++++++++++- .github/workflows/build.yaml | 10 +++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index c8d014c..74b85dc 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -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 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 78f0885..d287af2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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