@@ -53,7 +53,8 @@ permissions:
5353 contents : read
5454
5555jobs :
56- release :
56+ nic-release-pr :
57+ name : Update NIC versions in local files and create PR
5758 permissions :
5859 contents : write
5960 pull-requests : write
9798 ${{ inputs.new_version }} \
9899 ${{ inputs.new_helm_version }} \
99100 ${{ inputs.new_operator_version }}
100- pip install --require-hashes -r .github/scripts/requirements.txt --no-deps
101- .github/scripts/release-docs.sh \
102- ${{ inputs.new_version }} \
103- ${{ inputs.new_helm_version }} \
104- ${{ inputs.new_operator_version }} \
105- "${{ inputs.k8s_versions }}" \
106- "${{ inputs.release_date }}"
107101 env :
108- GITHUB_USERNAME : nginx-bot
109- 110- GITHUB_TOKEN : ${{ steps.secrets.outputs.NGINX_PAT }}
111102 DRY_RUN : ${{ inputs.dry_run && 'true' || 'false' }}
112103 DEBUG : ${{ inputs.debug && 'true' || 'false' }}
113104
@@ -122,3 +113,45 @@ jobs:
122113 body : |
123114 This automated PR updates the docs for ${{ github.event.inputs.new_version }} release.
124115 if : ${{ ! inputs.dry_run }}
116+
117+ docs-release-pr :
118+ name : Update NIC versions in NGINX documentation and create PR
119+ permissions :
120+ contents : write
121+ pull-requests : write
122+ id-token : write
123+ runs-on : ubuntu-24.04
124+ steps :
125+ - name : Checkout Repository
126+ uses : actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
127+
128+ - name : Azure login
129+ uses : azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
130+ with :
131+ client-id : ${{ secrets.AZURE_COMMON_VAULT_CLIENT_ID }}
132+ tenant-id : ${{ secrets.AZURE_COMMON_VAULT_TENANT_ID }}
133+ subscription-id : ${{ secrets.AZURE_COMMON_VAULT_SUBSCRIPTION_ID }}
134+
135+ - name : Setup secrets
136+ id : secrets
137+ run : |
138+ echo "Setting secrets for job"
139+ NGINX_PAT=$(az keyvault secret show --name nginx-bot-pat --vault-name ${{ secrets.COMMON_KEYVAULT_NAME }} --query value -o tsv)
140+ echo "::add-mask::$NGINX_PAT"
141+ echo "NGINX_PAT=$NGINX_PAT" >> $GITHUB_OUTPUT
142+
143+ - name : Update Documentation Versions
144+ run : |
145+ pip install --require-hashes -r .github/scripts/requirements.txt --no-deps
146+ .github/scripts/release-docs.sh \
147+ ${{ inputs.new_version }} \
148+ ${{ inputs.new_helm_version }} \
149+ ${{ inputs.new_operator_version }} \
150+ "${{ inputs.k8s_versions }}" \
151+ "${{ inputs.release_date }}"
152+ env :
153+ GITHUB_USERNAME : nginx-bot
154+ 155+ GITHUB_TOKEN : ${{ steps.secrets.outputs.NGINX_PAT }}
156+ DRY_RUN : ${{ inputs.dry_run && 'true' || 'false' }}
157+ DEBUG : ${{ inputs.debug && 'true' || 'false' }}
0 commit comments