From 593edd54a9c30edb7307ef0243473337a1ae3f2f Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Wed, 10 Apr 2024 19:47:18 +0200 Subject: [PATCH] Update read file action in bounty workflow The read file action in the bounty workflow has been updated, replacing the previous manual method with a more efficient GitHub action. This action greatly simplifies the code, improving readability and ease of maintenance. The file path has also been corrected. --- .github/workflows/bounty.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bounty.yml b/.github/workflows/bounty.yml index 252cf83c5..a0b6ccb22 100644 --- a/.github/workflows/bounty.yml +++ b/.github/workflows/bounty.yml @@ -14,16 +14,16 @@ jobs: - name: Read Footer Content id: footer - run: | - content=$(cat .github/bounty-footer.md | jq -Rs .) - echo "::set-output name=content::$content" + uses: jaywcjlove/github-action-read-file@main + with: + path: docs/bounty-footer.md - name: Append Footer to Issue uses: actions/github-script@v7 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | - const issueComment = `${{ steps.footer.outputs.content }}`; + const issueComment = "${{ steps.footer.outputs.content }}"; await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner,