We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67477c5 commit 071bec8Copy full SHA for 071bec8
.github/workflows/close-operator-pr.yml
@@ -0,0 +1,30 @@
1
+name: Close Operator PR
2
+
3
+on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ url:
7
+ description: "Operator PR URL to close"
8
+ required: true
9
10
11
+permissions:
12
+ contents: read
13
14
+jobs:
15
+ pr-update:
16
+ runs-on: ubuntu-22.04
17
+ steps:
18
+ - name: Close PR
19
+ run: |
20
+ gh pr view ${{ inputs.url }}
21
+ rc=$?
22
+ if [ ${rc} -eq 0 ]; then
23
+ echo "Closing PR ${{ inputs.url }}"
24
+ gh pr close ${{ inputs.url }}
25
+ echo $?
26
+ else
27
+ echo "${{ inputs.url }} does not exist"
28
+ fi
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.NGINX_PAT }}
0 commit comments