Skip to content

Oauth2 feature added #67

Oauth2 feature added

Oauth2 feature added #67

Workflow file for this run

name: Build connectors for BI tools
on:
pull_request:
push:
paths:
- 'bi-connectors/PowerBIConnector/**'
- '.github/workflows/bi-connectors.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prepare Power BI ODBC connector for 'OpenSearch Project'
run: |
cp OpenSearchProject.pq OpenSearchProject.m
working-directory: bi-connectors/PowerBIConnector/src
- name: Pack Power BI ODBC connector
id: pack-powerbi-odbc-os-proj
run: |
zip OpenSearchProject.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector/src
- name: Prepare Power BI ODBC connector for 'Amazon OpenSearch Service'
id: prep-powerbi-odbc-amz-os-svc
run: |
mv OpenSearchProject.m AmazonOpenSearchService.m
sed -i 's/<value>OpenSearch Project<\/value>/<value>Amazon OpenSearch Service<\/value>/g' resources.resx
sed -i 's/OpenSearch Project/Amazon OpenSearch Service/g' AmazonOpenSearchService.m
sed -i 's/OpenSearchProject/AmazonOpenSearchService/g' AmazonOpenSearchService.m
sed -i 's/opensearchproject/amazonopensearchservice/g' AmazonOpenSearchService.m
working-directory: bi-connectors/PowerBIConnector/src
- name: Pack Power BI ODBC connector for 'Amazon OpenSearch Service'
id: pack-powerbi-odbc-amz-os-svc
run: |
zip AmazonOpenSearchService.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector/src
- name: Upload Power BI ODBC connectors
if: steps.pack-powerbi-odbc-os-proj.outcome == 'success' || (steps.prep-powerbi-odbc-amz-os-svc.outcome == 'success' && steps.pack-powerbi-odbc-amz-os-svc.outcome == 'success')
uses: actions/upload-artifact@v2
with:
name: PBIConnectors
path: 'bi-connectors/PowerBIConnector/src/*.mez'