Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update cronjobs with new gh actions #4248

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/cron-update-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ jobs:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}

- name: Create PR
uses: peter-evans/create-pull-request@v5
uses: actions/github-script@v6
with:
base: master
branch: docs/update-contributors
token: ${{ secrets.PAT }}
delete-branch: true
title: "chore: update contributors"
labels: Documentation
body: |
- Automatically generated PR on ${{ env.TODAY }}.
- Updates contributors for docs
assignees: mainframev
reviewers: mainframev
draft: false
script: |
github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "chore: update contributors",
body: `- Automatically generated PR on ${process.env.TODAY}.\n- Updates contributors for docs`,
head: "docs/update-contributors",
base: "master",
maintainer_can_modify: true,
});
24 changes: 11 additions & 13 deletions .github/workflows/cron-update-icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ jobs:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}

- name: Create PR
uses: peter-evans/create-pull-request@v5
uses: actions/github-script@v6
with:
base: master
branch: feat/update-icons-and-svgs
token: ${{ secrets.PAT }}
delete-branch: true
title: "feat(icons): update icons from Figma"
labels: Icons
body: |
- Automatically generated PR on ${{ env.TODAY }}.
- Updates icons from Figma
assignees: mainframev
reviewers: mainframev
draft: false
script: |
github.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,
});
23 changes: 11 additions & 12 deletions .github/workflows/cron-update-statuses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ jobs:
git diff-index --quiet HEAD || git commit -m "chore: update component statuses"

- name: Create PR
uses: peter-evans/create-pull-request@v5
uses: actions/github-script@v6
with:
base: master
branch: chore/update-icons-and-svgs
token: ${{ secrets.PAT }}
delete-branch: true
title: "chore: update component statuses"
body: |
- Automatically generated PR on ${{ env.TODAY }}.
- Updates component statuses
assignees: mainframev
reviewers: mainframev
draft: false
script: |
github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
head: 'chore/update-icons-and-svgs',
base: 'master',
title: 'chore: update component statuses',
body: `- Automatically generated PR on ${process.env.TODAY}.\n- Updates component statuses`,
maintainer_can_modify: true,
});
24 changes: 11 additions & 13 deletions .github/workflows/cron-update-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,15 @@ jobs:
FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}

- name: Create PR
uses: peter-evans/create-pull-request@v5
uses: actions/github-script@v6
with:
base: master
branch: feat/update-palette-tokens
token: ${{ secrets.PAT }}
delete-branch: true
title: "feat(tokens): update palette tokens from figma"
body: |
- Automatically generated PR on ${{ env.TODAY }}.
- Updates palette tokens from Figma
labels: Tokens
assignees: mainframev
reviewers: mainframev
draft: false
script: |
github.pulls.create({
owner: context.repo.owner,
repo: context.repo.repo,
head: 'feat/update-palette-tokens',
base: 'master',
title: 'feat(tokens): update palette tokens from figma',
body: `- Automatically generated PR on ${process.env.TODAY }.\n- Updates palette tokens from Figma`,
maintainer_can_modify: true,
});
Loading