Skip to content

Commit 9928141

Browse files
authored
Merge pull request #57 from launchdarkly-labs/update_deprovision
Update script
2 parents 460fd6f + 5af1150 commit 9928141

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: .github/workflows/delete_ld_project.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ def deleteLDProject():
3232

3333
response = requests.delete(url, headers=headers)
3434

35-
if (response.status == 204) {
35+
if response.status_code == 204:
3636
print(namespace + " project deleted successfully")
37-
} else {
37+
else:
3838
data = response.json()
3939
print(data)
40-
}
4140

Diff for: .github/workflows/ld-demoEnv-deprovision.yaml

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ jobs:
4040
- name: Checkout code
4141
uses: actions/checkout@v3
4242

43-
- name: Get deleted branch name
44-
run: echo "DELETED_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
45-
4643
- name: Set namespace for deployment
4744
id: set_namespace
4845
run: |
49-
BRANCH_NAME=${GITHUB_REF#refs/heads/}
46+
BRANCH_NAME=${{ github.event.ref }}"
5047
NAMESPACE=${BRANCH_NAME#demoenv-}
5148
echo "DEMO_NAMESPACE=${NAMESPACE}" >> $GITHUB_ENV
5249
echo "::set-output name=namespace::$NAMESPACE"

0 commit comments

Comments
 (0)