diff --git a/.github/workflows/smart-contract-verifier.yml b/.github/workflows/smart-contract-verifier.yml index dcd86e63b..9309d9217 100644 --- a/.github/workflows/smart-contract-verifier.yml +++ b/.github/workflows/smart-contract-verifier.yml @@ -65,3 +65,22 @@ jobs: uses: ./.github/workflows/_docker-build-push.yml with: service-name: smart-contract-verifier + + copy-swagger: + name: Copy swagger + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Pushes + uses: dmnemec/copy_file_to_another_repo_action@main + env: + API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + with: + source_file: 'smart-contract-verifier/smart-contract-verifier-proto/swagger/v2/smart-contract-verifier.swagger.yaml' + destination_repo: 'blockscout/swaggers' + destination_folder: 'services/smart-contract-verifier/swagger.yaml' + user_email: 'rimrakhimov@gmail.com ' + user_name: 'rimrakhimov' + destination_branch: 'master' \ No newline at end of file