From 2a6ea6fb3a31331044a49f7b3f6f2c4ce257d2a3 Mon Sep 17 00:00:00 2001 From: Dennis Lee Date: Tue, 5 Mar 2024 17:02:51 +0800 Subject: [PATCH] use the upload-artifact and download-artifact actions to share data between jobs --- .github/workflows/pylint-github-readme.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pylint-github-readme.yml b/.github/workflows/pylint-github-readme.yml index f3eebc9..7ef612f 100644 --- a/.github/workflows/pylint-github-readme.yml +++ b/.github/workflows/pylint-github-readme.yml @@ -11,6 +11,11 @@ jobs: with: without-hashes: true outfile-name: requirements.txt + - name: Upload requirements.txt + uses: actions/upload-artifact@v4 + with: + name: requirements_txt + path: requirements.txt lint: needs: export-requirements-txt @@ -37,6 +42,11 @@ jobs: # - name: Export requirements.txt # run: poetry export -f requirements.txt --output requirements.txt + - name: Download requirements-txt + uses: actions/download-artifact@v4 + with: + name: requirements_txt + - name: Lint with PyLint uses: Silleellie/pylint-github-action@v2 with: