File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -50,13 +50,16 @@ jobs:
50
50
destroy-deployed-branch :
51
51
name : Call Azure Destroy Pipeline
52
52
runs-on : ubuntu-latest
53
- needs : get-details
54
53
steps :
54
+ - name : Set branch name to destroy
55
+ run : |
56
+ echo 'chartName='$( echo ${{ github.head_ref || github.ref_name }} | sed "s/_/-/" | awk '{print tolower($0)}' ) >> "$GITHUB_OUTPUT"
57
+ id : getChartName
55
58
- name : Azure Pipelines Action
56
- if : needs.get-details .outputs.issue-number
59
+ if : ${{ (steps.getChartName .outputs.chartName != 'staging') && (steps.getChartName.outputs.chartName != 'master') }}
57
60
58
61
with :
59
62
azure-devops-project-url : https://dev.azure.com/3drepo/3drepo.io
60
63
azure-pipeline-name : ' destroy'
61
64
azure-devops-token : ${{ secrets.AZURE_DEVOPS_TOKEN }}
62
- azure-pipeline-variables : ' {"branchName": "issue- ${{ needs.get-details .outputs.issue-number }}"}'
65
+ azure-pipeline-variables : ' {"branchName": "${{ steps.getChartName .outputs.chartName }}"}'
You can’t perform that action at this time.
0 commit comments