Skip to content

Commit

Permalink
chore: update changeset workflow comment action and remove readme wor…
Browse files Browse the repository at this point in the history
…kflow (#12493)
  • Loading branch information
momentmaker committed Mar 19, 2024
1 parent d08a3e8 commit 5242726
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 46 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,30 @@ jobs:
- '!core/chainlink.Dockerfile'
contracts:
- contracts/**/*.sol
- '!contracts/**/*.t.sol'
core-changeset:
- added: '.changeset/**'
contracts-changeset:
- added: 'contracts/.changeset/**'
- name: Make a comment
uses: unsplash/comment-on-pr@ffe8f97ccc63ce12c3c23c6885b169db67958d3b # v1.3.0
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
if: ${{ (steps.files-changed.outputs.core == 'true' || steps.files-changed.outputs.shared == 'true') && steps.files-changed.outputs.core-changeset == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "I see you updated files related to `core`. Please run `pnpm changeset` in the root directory to add a changeset."
check_for_duplicate_msg: true
message: "I see you updated files related to `core`. Please run `pnpm changeset` in the root directory to add a changeset."
reactions: eyes
comment_tag: changeset-core
- name: Make a comment
uses: unsplash/comment-on-pr@ffe8f97ccc63ce12c3c23c6885b169db67958d3b # v1.3.0
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
if: ${{ steps.files-changed.outputs.contracts == 'true' && steps.files-changed.outputs.contracts-changeset == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: "I see you updated files related to `contracts`. Please run `pnpm changeset` in the `contracts` directory to add a changeset."
check_for_duplicate_msg: true
message: |
I see you updated files related to `contracts`. Please run `pnpm changeset` in the `contracts` directory to add a changeset.
reactions: eyes
comment_tag: changeset-contracts
- name: Check for new changeset for core
if: ${{ (steps.files-changed.outputs.core == 'true' || steps.files-changed.outputs.shared == 'true') && steps.files-changed.outputs.core-changeset == 'false' }}
shell: bash
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/readme.yml

This file was deleted.

0 comments on commit 5242726

Please sign in to comment.