Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing testbranch closure #5410

Closed
wants to merge 14 commits into from
9 changes: 6 additions & 3 deletions .github/workflows/onPRClose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ jobs:
destroy-deployed-branch:
name: Call Azure Destroy Pipeline
runs-on: ubuntu-latest
needs: get-details
steps:
- name: Set new branch name value
run: |
echo 'chartName='$( echo ${{ github.head_ref || github.ref_name }} | sed "s/_/-/" | awk '{print tolower($0)}' ) >> "$GITHUB_OUTPUT"
id: getChartName
- name: Azure Pipelines Action
if: needs.get-details.outputs.issue-number
if: steps.getChartName.outputs.chartName != 'staging'
uses: Azure/[email protected]
with:
azure-devops-project-url: https://dev.azure.com/3drepo/3drepo.io
azure-pipeline-name: 'destroy'
azure-devops-token: ${{ secrets.AZURE_DEVOPS_TOKEN }}
azure-pipeline-variables: '{"branchName": "issue-${{ needs.get-details.outputs.issue-number }}"}'
azure-pipeline-variables: '{"branchName": "${{ steps.getChartName.outputs.chartName }}"}'
Loading