Skip to content

Commit

Permalink
Structure equivalent to backport trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbond-msft committed Aug 6, 2024
1 parent ca7ccd1 commit 1948306
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/rebase-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,27 @@ on:
types: [created]

jobs:
launchRebaseBuild:
setupRebase:
runs-on: ubuntu-latest
# GITHUB_TOKEN change from read-write to read-only on 2024-02-01 requires permissions block
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
actions: write
contents: read
security-events: write
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@gitbot rebase')
steps:
- name: Show Comment
shell: pwsh
id: show_comment
run: |
Write-Host "Comment: ${env:COMMENT}"
env:
COMMENT: "${{ github.event.comment.body }}"

launchRebaseBuild:
needs: setupRebase
uses: xamarin/rebase-bot-action/.github/workflows/[email protected]
# GITHUB_TOKEN change from read-write to read-only on 2024-02-01 requires permissions block
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
Expand All @@ -28,5 +47,4 @@ jobs:
ado_project: ${{ secrets.ADO_PROJECT }}
rebase_pipeline_id: ${{ secrets.REBASE_PIPELINEID }}
github_account_pat: ${{ secrets.SERVICEACCOUNT_PAT }}
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@gitbot rebase')

0 comments on commit 1948306

Please sign in to comment.