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