Skip to content

Use workload identity for sql server auth #11

Use workload identity for sql server auth

Use workload identity for sql server auth #11

Workflow file for this run

name: TEST Pull request
on:
pull_request:
branches:
- main
jobs:
matrix-prep:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- id: set-matrix
env:
REF: ${{ github.ref }}
run: |
matrix=$(jq --arg ref "$REF" 'map( . | select((.runOn==$ref) or (.runOn=="always")))' .github/workflows/targets.json)
echo "matrix={\"include\":$(echo $matrix)}" >> $GITHUB_OUTPUT
build:
name: Build
runs-on: ubuntu-latest
needs: [matrix-prep]
strategy:
matrix: ${{fromJson(needs.matrix-prep.outputs.matrix)}}
steps:
- run: echo ${{matrix.name}}