Skip to content

Commit 9d291c8

Browse files
authored
Merge pull request #14 from nginxinc/ag-fix-syn
Changed to use github run number over randomly generated value
2 parents 2314259 + 0b37134 commit 9d291c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/testNginxForAzureDeploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ jobs:
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:

0 commit comments

Comments
 (0)