Skip to content

Commit 916c0e5

Browse files
fix: update dc_deploy.yml to use environments
1 parent 0b30543 commit 916c0e5

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

.github/workflows/dc_deploy.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ name: 'DC: Deploy'
22

33
on:
44
workflow_call:
5-
secrets:
6-
SSH_HOST:
7-
required: true
8-
description: "SSH host"
9-
SSH_USER:
10-
required: true
11-
description: "SSH user"
12-
SSH_PRIVATE_KEY:
13-
required: true
14-
description: "SSH private_key"
155

166
# Special permissions required for OIDC authentication
177
permissions:
@@ -36,6 +26,7 @@ jobs:
3626
gh-delete-branch:
3727
name: 'GitHub: Delete Branch'
3828
runs-on: ubuntu-latest
29+
environment: dev
3930
needs: [dc-release]
4031
if: github.event_name == 'pull_request' && github.event.pull_request.merged && !failure() && !cancelled()
4132
steps:
@@ -46,4 +37,4 @@ jobs:
4637

4738
- name: Delete Branch
4839
shell: bash
49-
run: git push origin --delete ${{ github.head_ref }} || true
40+
run: git push origin --delete ${{ github.head_ref }} || true

0 commit comments

Comments
 (0)