-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,54 +9,9 @@ jobs: | |
needs: get-details | ||
steps: | ||
- name: Azure Pipelines Action | ||
if: needs.get-details.outputs.issue-number | ||
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": ${{ github.head_ref || github.ref_name }}}' | ||
|
||
get-details: | ||
name: Get Current Issue Details | ||
runs-on: ubuntu-latest | ||
outputs: | ||
issue-number: ${{ steps.commitMsgParser.outputs.issue-number }} | ||
issue-content-id: ${{ steps.commitMsgParser.outputs.issue-content-id }} | ||
steps: | ||
- name: Extract Issue Number from PR | ||
uses: 3drepo/extract-pr-information@v1 | ||
with: | ||
pr: ${{ github.event.number }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
id: commitMsgParser | ||
|
||
tag-on-pr-merge: | ||
name: Tag merged issues as In staging if applicable | ||
runs-on: ubuntu-latest | ||
needs: get-details | ||
steps: | ||
- name: Apply in staging label | ||
if: ${{github.event.pull_request.merged && github.event.pull_request.base.ref == 'staging'}} | ||
uses: carmenfan/[email protected] | ||
with: | ||
issue-number: ${{ needs.get-details.outputs.issue-number }} | ||
label: 'in staging' | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
update-project-status: | ||
name: Update status of the issue in the project | ||
runs-on: ubuntu-latest | ||
needs: get-details | ||
steps: | ||
- name: Update status in the Project | ||
if: ${{github.event.pull_request.merged}} | ||
id: update_status | ||
uses: 3drepo/[email protected] | ||
with: | ||
github_token: ${{ secrets.PROJ_MANAGEMENT_TOKEN }} | ||
organization: 3drepo | ||
project_number: 22 | ||
content_id: ${{ needs.get-details.outputs.issue-content-id }} | ||
field: Status | ||
value: Merged |