diff --git a/.github/workflows/cron-update-icons.yml b/.github/workflows/cron-update-icons.yml index a41fb1a78c..1fed9053dc 100644 --- a/.github/workflows/cron-update-icons.yml +++ b/.github/workflows/cron-update-icons.yml @@ -42,17 +42,25 @@ jobs: env: FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }} + - uses: actions/checkout@v4 + - name: Create PR - uses: actions/github-script@v6 + uses: peter-evans/create-pull-request@v6 + # uses: actions/github-script@v6 if: env.new_files == 'true' with: - script: | - github.rest.pulls.create({ - owner: context.repo.owner, - repo: context.repo.repo, - head: 'feat/update-icons-and-svgs', - base: 'master', - title: 'feat(icons): update icons from Figma', - body: `- Automatically generated PR on ${process.env.TODAY}.\n- Updates icons from Figma`, - maintainer_can_modify: true, - }); + commit-message: "feat(icons): update icons from Figma" + title: "feat(icons): update icons from Figma" + body: "- Automatically generated PR on ${process.env.TODAY}.\n- Updates icons from Figma" + branch: feat/update-icons-and-svgs + # with: + # script: | + # github.rest.pulls.create({ + # owner: context.repo.owner, + # repo: context.repo.repo, + # head: 'feat/update-icons-and-svgs', + # base: 'master', + # title: 'feat(icons): update icons from Figma', + # body: `- Automatically generated PR on ${process.env.TODAY}.\n- Updates icons from Figma`, + # maintainer_can_modify: true, + # });