From 6beea3d495ec950ea5a7c92433fc584ddd78b172 Mon Sep 17 00:00:00 2001 From: arkanoider Date: Mon, 16 Dec 2024 17:24:09 +0100 Subject: [PATCH] testing new db approach on CI --- .github/workflows/rust.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 41c3816..ecc0475 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,14 +21,24 @@ jobs: # Give the default GITHUB_TOKEN write permission to commit and push the # added or changed files to the repository. contents: write - + + steps: - name: Install Protoc uses: arduino/setup-protoc@v3 - - uses: actions/checkout@v4 + + - name: Select branch PR + if: ${{ github.ref != 'refs/heads/main' }} + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} + - name: Select branch main + if: ${{ github.ref == 'refs/heads/main' }} + uses: actions/checkout@v4 + with: + ref: main + - name: Install sqlx run: cargo install sqlx-cli --version 0.6.2 - name: Init DB