Skip to content

Commit

Permalink
fix: added baste branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarka Chwastkova committed Jul 8, 2024
1 parent 52e214f commit e27d300
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/cron-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,29 @@ jobs:
env:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}

- uses: actions/checkout@v4

- name: Create PR
uses: peter-evans/create-pull-request@v6
# uses: actions/github-script@v6
# uses: peter-evans/create-pull-request@v6
# id: cpr
uses: actions/github-script@v6
if: env.new_files == 'true'
with:
token: ${{ secrets.PAT }}
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,
# });
# token: ${{ secrets.PAT }}
# 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
# # branch: ${{ github.head_ref }}
# base: master
with:
github-token: ${{ secrets.PAT}}
persist-credentials: false
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,
});

0 comments on commit e27d300

Please sign in to comment.