From a909e38e70baf7f9949f9c54ee9fb96ed67e22a2 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Sat, 17 Aug 2024 21:53:51 +0300 Subject: [PATCH] chore(action): fix sponsors action; (#6555) --- .github/workflows/sponsors.yml | 9 ++++++++- .gitignore | 1 + bin/sponsors.js | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 5f0a77f69a..705a7e71e3 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -31,6 +31,13 @@ jobs: if: ${{ steps.sponsors.outputs.changed }} run: | echo "Sponsor block has changed. Creating PR with updates..." + - name: Read sponsors.md file content + id: read_file + run: | + FILE_CONTENT=$(cat ./temp/sponsors.md) + echo "File content: $FILE_CONTENT" + echo "::set-output name=file_content::$FILE_CONTENT" + shell: bash - name: Create pull request if: ${{ steps.sponsors.outputs.changed }} uses: peter-evans/create-pull-request@v6 @@ -42,7 +49,7 @@ jobs: title: '[Chore] Update sponsor block' body: | **New sponsor block update:** - {{ steps.sponsors.outputs.content }} + {{ steps.read_file.outputs.file_content }} labels: | readme automated pr diff --git a/.gitignore b/.gitignore index 2bfebdaa4a..289b074886 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ .DS_Store node_modules/ coverage/ +temp/ test/typescript/axios.js* sauce_connect.log test/module/**/package-lock.json diff --git a/bin/sponsors.js b/bin/sponsors.js index 7338e43d67..7b02cb9759 100644 --- a/bin/sponsors.js +++ b/bin/sponsors.js @@ -58,6 +58,6 @@ const updateReadmeSponsors = async (url, path, marker = '