Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Adsit <connor.adsit@gmail.com>2022-10-24 20:16:17 +0300
committerGitHub <noreply@github.com>2022-10-24 20:16:17 +0300
commit020d92e8cc746e6035ec78b99c84ee1f0dcc53f0 (patch)
treeea1634b92016599cb166977b0ec45eef51b35c78
parenteab74420661dd4d42e6b17d1fafc65009c0b94dd (diff)
Update backport-trigger.ymldev/cadsit/update-backport-bot
-rw-r--r--.github/workflows/backport-trigger.yml43
1 files changed, 29 insertions, 14 deletions
diff --git a/.github/workflows/backport-trigger.yml b/.github/workflows/backport-trigger.yml
index 5ebf570..9b75a8f 100644
--- a/.github/workflows/backport-trigger.yml
+++ b/.github/workflows/backport-trigger.yml
@@ -5,19 +5,34 @@ on:
types: [created]
jobs:
- launchBackportBuild:
+ setupBackport:
runs-on: ubuntu-latest
- if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@gitbot backport')
-
+ if: github.event.issue.pull_request != '' && startswith(github.event.comment.body, '@gitbot backport')
+ outputs:
+ target_branch: ${{ steps.parse_comment.outputs.target_branch }}
steps:
- - uses: xamarin/backport-bot-action@v1.0
- with:
- pull_request_url: ${{ github.event.issue.pull_request.url }}
- comment_body: ${{ github.event.comment.body }}
- comment_author: ${{ github.actor }}
- github_repository: ${{ github.repository }}
- ado_organization: ${{ secrets.ADO_PROJECTCOLLECTION }}
- ado_project: ${{ secrets.ADO_PROJECT }}
- backport_pipeline_id: ${{ secrets.BACKPORT_PIPELINEID }}
- ado_build_pat: ${{ secrets.ADO_BUILDPAT }}
- github_account_pat: ${{ secrets.SERVICEACCOUNT_PAT }}
+ - name: Parse Comment
+ id: parse_comment
+ run: |
+ Write-Host "Parsing $env:COMMENT"
+ ($botName, $backport, $backportTargetBranch) = [System.Text.RegularExpressions.Regex]::Split("$env:COMMENT", "\s+")
+ echo "::set-output name=target_branch::$backportTargetBranch"
+ shell: pwsh
+ env:
+ COMMENT: "${{ github.event.comment.body }}"
+
+ launchBackportBuild:
+ needs: setupBackport
+ uses: xamarin/backport-bot-action/.github/workflows/backport-action.yml@v1.1
+ with:
+ pull_request_url: ${{ github.event.issue.pull_request.url }}
+ target_branch: ${{ needs.setupBackport.outputs.target_branch }}
+ comment_author: ${{ github.actor }}
+ github_repository: ${{ github.repository }}
+ use_fork: false
+ secrets:
+ ado_organization: ${{ secrets.ADO_PROJECTCOLLECTION }}
+ ado_project: ${{ secrets.ADO_PROJECT }}
+ backport_pipeline_id: ${{ secrets.BACKPORT_PIPELINEID }}
+ ado_build_pat: ${{ secrets.ADO_BUILDPAT }}
+ github_account_pat: ${{ secrets.SERVICEACCOUNT_PAT }}