Skip to content

Commit

Permalink
rebase-trigger: Ability to test rebase changes within the rebase-bot-…
Browse files Browse the repository at this point in the history
…action repo itself (#7)
  • Loading branch information
mjbond-msft committed Aug 6, 2024
1 parent c1c640e commit b265541
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/rebase-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Rebase Trigger

on:
issue_comment:
types: [created]

jobs:
launchRebaseBuild:
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
id-token: write # The rebase-action template being invoked requires this permission
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '@gitbot rebase')

steps:
- uses: xamarin/rebase-bot-action/.github/workflows/[email protected]
with:
pull_request_url: ${{ github.event.issue.pull_request.url }}
comment_author: ${{ github.actor }}
github_repository: ${{ github.repository }}
secrets:
azure_tenant_id: ${{ secrets.REBASE_AZURE_TENANT_ID }}
azure_subscription_id: ${{ secrets.REBASE_AZURE_SUBSCRIPTION_ID }}
azure_client_id: ${{ secrets.REBASE_AZURE_CLIENT_ID }}
ado_organization: ${{ secrets.ADO_PROJECTCOLLECTION }}
ado_project: ${{ secrets.ADO_PROJECT }}
rebase_pipeline_id: ${{ secrets.REBASE_PIPELINEID }}
github_account_pat: ${{ secrets.SERVICEACCOUNT_PAT }}

0 comments on commit b265541

Please sign in to comment.