From 4d7069c7d1710eb2a7c0181a12f7986324074d6c Mon Sep 17 00:00:00 2001 From: Sergey Kambalin Date: Wed, 22 Jan 2025 14:57:37 +0600 Subject: [PATCH 1/2] Update validation workflow to validate removed files --- .github/workflows/validate-pr.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 352ca2f..ed7c81d 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -17,8 +17,6 @@ jobs: - name: Detect changed files uses: yumemi-inc/changed-files@v3 id: changes - with: - exclude-statuses: 'removed' - name: Checkout repository uses: actions/checkout@v4 @@ -27,7 +25,6 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Validate - if: steps.changes.outputs.exists == 'true' uses: symbioticfi/metadata-validation-scripts@main with: files: ${{ steps.changes.outputs.files }} From a33bd0e1b9708599b0ab6393813a10d73b188b6d Mon Sep 17 00:00:00 2001 From: Sergey Kambalin Date: Thu, 30 Jan 2025 13:23:10 +0600 Subject: [PATCH 2/2] Validate collateral existence in upstream branch --- .github/workflows/validate-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index ed7c81d..5262550 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -24,6 +24,13 @@ jobs: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} + - name: Checkout upstream + uses: actions/checkout@v4 + with: + path: upstream + ref: main + repository: ${{ github.event.pull_request.base.repo.full_name }} + - name: Validate uses: symbioticfi/metadata-validation-scripts@main with: @@ -31,6 +38,7 @@ jobs: issue: ${{ github.event.number }} token: ${{ secrets.GITHUB_TOKEN }} chain-id: 17000 + upstream-checkout-path: upstream network-registry: "0x7d03b7343bf8d5cec7c0c27ece084a20113d15c9" operator-registry: "0x6f75a4fff97326a00e52662d82ea4fde86a2c548" vault-registry: "0x407a039d94948484d356efb765b3c74382a050b4"