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 31
31
- name : ' Update config - single file'
32
32
shell : bash
33
33
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
36
36
- name : ' Sync NGINX configuration to NGINX on Azure instance - single file'
37
37
uses : nginxinc/nginx-for-azure-deploy-action@v0
38
38
with :
@@ -45,11 +45,12 @@ jobs:
45
45
- name : ' Validate config update - single file'
46
46
shell : bash
47
47
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 "'")'
49
49
- name : ' Update config - multi file'
50
50
shell : bash
51
51
run : |
52
52
sed -i 's/000000/'"$GITHUB_RUN_ID"'/g' test/configs/multi/conf.d/proxy.conf
53
+ cat test/configs/multi/conf.d/proxy.conf
53
54
- name : ' Sync NGINX configuration to NGINX on Azure instance - multi file'
54
55
uses : nginxinc/nginx-for-azure-deploy-action@v0
55
56
with :
You can’t perform that action at this time.
0 commit comments