Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit 8db9728

Browse files
committed
Set secrets as env vars for git push
1 parent 294fffe commit 8db9728

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/main_next-devex-blocks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- uses: actions/checkout@v2
1717

1818
- name: git push to Azure Web Apps
19+
env:
20+
USER: ${{ secrets.AZURE_GIT_USER }}
21+
PASS: ${{ secrets.AZURE_GIT_PASSWORD }}
1922
run: |
20-
git remote add azure https://${{ secrets.AZURE_GIT_USER }}:${{ secrets.AZURE_GIT_PASSWORD }}@next-devex-blocks.scm.azurewebsites.net:443/next-devex-blocks.git
23+
git remote add azure "https://$USER:$PASS@next-devex-blocks.scm.azurewebsites.net:443/next-devex-blocks.git"
2124
git push azure main

0 commit comments

Comments
 (0)