From 28dfe8fcda387c49c10cac9b995bfdcca654d173 Mon Sep 17 00:00:00 2001 From: arkanoider Date: Mon, 16 Dec 2024 14:20:47 +0100 Subject: [PATCH] testing new db approach on CI --- .github/workflows/rust.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3214214a..71152509 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,12 +22,17 @@ jobs: # added or changed files to the repository. contents: write + if: ${{ github.ref == 'refs/heads/main' }} + steps: - name: Install Protoc uses: arduino/setup-protoc@v3 - uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + fetch-depth: 0 + + - name: Checkout branch + run: git checkout -B $GITHUB_BRANCH origin/$GITHUB_BRANCH - name: Install sqlx run: cargo install sqlx-cli --version 0.6.2