File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131 - name : ' Update config - single file'
3232 shell : bash
3333 run : |
34- echo "RANDOM=$((RANDOM%10))" >> $GITHUB_ENV
35- sed -i 's/000000/'"${{ env.RANDOM }}"'/g' test/configs/single/nginx.conf
34+ sed -i 's/000000/'"$GITHUB_RUN_NUMBER"'/g' test/configs/single/nginx.conf
35+ cat test/configs/single/nginx.conf
3636 - name : ' Sync NGINX configuration to NGINX on Azure instance - single file'
3737 uses : nginxinc/nginx-for-azure-deploy-action@v0
3838 with :
@@ -45,11 +45,12 @@ jobs:
4545 - name : ' Validate config update - single file'
4646 shell : bash
4747 run : |
48- wget -O - -o /dev/null http://${{ secrets.NGINX_DEPLOYMENT_IP }} | jq '.request.headers."Github-Run-Id" | test( "'"${{ env.RANDOM }} "'")'
48+ wget -O - -o /dev/null http://${{ secrets.NGINX_DEPLOYMENT_IP }} | jq '.request.headers."Github-Run-Id" | test( "'"$GITHUB_RUN_NUMBER "'")'
4949 - name : ' Update config - multi file'
5050 shell : bash
5151 run : |
5252 sed -i 's/000000/'"$GITHUB_RUN_ID"'/g' test/configs/multi/conf.d/proxy.conf
53+ cat test/configs/multi/conf.d/proxy.conf
5354 - name : ' Sync NGINX configuration to NGINX on Azure instance - multi file'
5455 uses : nginxinc/nginx-for-azure-deploy-action@v0
5556 with :
You can’t perform that action at this time.
0 commit comments