Skip to content

fixed circular-deps.sh #3

fixed circular-deps.sh

fixed circular-deps.sh #3

name: Update Circular Dependencies
on:
issue_comment:
types: created
jobs:
shared-flow:
uses: ./.github/workflows/shared/metamaskbot-pr-update.yml

Check failure on line 9 in .github/workflows/circular-deps-update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/circular-deps-update.yml

Invalid workflow file

invalid value workflow reference: workflows must be defined at the top level of the .github/workflows/ directory
with:
bot_command: '@metamaskbot update-circular-deps'
commit_message: 'Update circular dependencies'
file_pattern: 'circular-deps.json'
secrets:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-circular-deps:
name: Update Circular Dependencies
needs: shared-flow
if: ${{ needs.shared-flow.outputs.is_fork == 'false' }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout pull request
run: gh pr checkout "${PR_NUMBER}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.issue.number }}
- name: Setup environment
uses: metamask/github-tools/.github/actions/setup-environment@main
- name: Install madge
run: yarn add -D madge
- name: Update circular dependencies
run: yarn circular:update