File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,9 @@ def deleteLDProject():
32
32
33
33
response = requests .delete (url , headers = headers )
34
34
35
- if ( response .status == 204 ) {
35
+ if response .status_code == 204 :
36
36
print (namespace + " project deleted successfully" )
37
- } else {
37
+ else :
38
38
data = response .json ()
39
39
print (data )
40
- }
41
40
Original file line number Diff line number Diff line change @@ -40,13 +40,10 @@ jobs:
40
40
- name : Checkout code
41
41
uses : actions/checkout@v3
42
42
43
- - name : Get deleted branch name
44
- run : echo "DELETED_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
45
-
46
43
- name : Set namespace for deployment
47
44
id : set_namespace
48
45
run : |
49
- BRANCH_NAME=${GITHUB_REF#refs/heads/}
46
+ BRANCH_NAME=${{ github.event.ref }}"
50
47
NAMESPACE=${BRANCH_NAME#demoenv-}
51
48
echo "DEMO_NAMESPACE=${NAMESPACE}" >> $GITHUB_ENV
52
49
echo "::set-output name=namespace::$NAMESPACE"
You can’t perform that action at this time.
0 commit comments