Skip to content

Commit c7c7764

Browse files
committed
workflow update
1 parent c0c1962 commit c7c7764

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/main_webapp-bet-blocker.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,7 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15-
16-
env:
17-
MongoDB__ConnectionString: ${{ secrets.MONGODB_CONNECTIONSTRING }}
18-
MongoDB__DatabaseName: ${{ secrets.MONGODB_DATABASENAME }}
19-
MongoDB__CollectionName: ${{ secrets.MONGODB_COLLECTIONNAME }}
20-
15+
2116
steps:
2217
- uses: actions/checkout@v4
2318

@@ -52,6 +47,12 @@ jobs:
5247
uses: actions/download-artifact@v4
5348
with:
5449
name: .net-app
50+
51+
- name: Set MongoDB Environment Variables
52+
run: |
53+
echo "MongoDB__ConnectionString=${{ secrets.MONGODB_CONNECTIONSTRING }}" >> $GITHUB_ENV
54+
echo "MongoDB__DatabaseName=${{ secrets.MONGODB_DATABASENAME }}" >> $GITHUB_ENV
55+
echo "MongoDB__CollectionName=${{ secrets.MONGODB_COLLECTIONNAME }}" >> $GITHUB_ENV
5556
5657
- name: Login to Azure
5758
uses: azure/login@v2

0 commit comments

Comments
 (0)