Skip to content

Commit

Permalink
fix: run workflow once the PR is created by job
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarka Chwastkova committed Jul 3, 2024
1 parent df0c31b commit 43aab1d
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/cron-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
# });

0 comments on commit 43aab1d

Please sign in to comment.