From 21f5123bf7b947b029ea64c42e1c0d44740debe4 Mon Sep 17 00:00:00 2001 From: Leithen Date: Mon, 15 Jan 2024 10:06:54 -0700 Subject: [PATCH] Bump actions/upload-artifact from 3 to 4 (#11043) * bump actions/upload-artifact from 3 to 4 * change check url artifact name * update download to v4 --- .github/workflows/check-urls.yml | 11 +++++++---- .github/workflows/fpb-lint.yml | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-urls.yml b/.github/workflows/check-urls.yml index ae02aaf0c..eb6a40d8b 100644 --- a/.github/workflows/check-urls.yml +++ b/.github/workflows/check-urls.yml @@ -84,12 +84,15 @@ jobs: - name: Install awesome_bot run: | gem install awesome_bot + - name: Set output + id: set-output + run: echo "FILENAME=$(echo ${{ matrix.file }} | grep -oE '[a-zA-Z0-9_-]+\.yml')" >> "$GITHUB_OUTPUT" - name: "Check URLs of file: ${{ matrix.file }}" run: | awesome_bot "${{ matrix.file }}" --allow-redirect --allow-dupe --allow-ssl || true; - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: awesomebot-results + name: ${{ steps.set-output.outputs.FILENAME}} path: ${{ github.workspace }}/ab-results-*.json @@ -101,9 +104,9 @@ jobs: - name: Checkout # for having the sources of the local action uses: actions/checkout@v4 # download and unzip the ab-results-*.json generated by job-matrix: check-urls - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: awesomebot-results + name: ${{ steps.set-output.outputs.FILENAME}} - name: Generate Summary Report uses: ./.github/actions/awesomebot-gh-summary-action with: diff --git a/.github/workflows/fpb-lint.yml b/.github/workflows/fpb-lint.yml index a450e0191..9c8f6b7f9 100644 --- a/.github/workflows/fpb-lint.yml +++ b/.github/workflows/fpb-lint.yml @@ -29,7 +29,7 @@ jobs: echo ${{ github.event.pull_request.html_url }} > ./pr/PRurl cat output.log | sed -E 's:/home/runner/work/free-programming-books/|⚠.+::' | uniq > ./pr/error.log - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: name: pr