Skip to content

🚧Improve pathing based on OS #101

🚧Improve pathing based on OS

🚧Improve pathing based on OS #101

name: 🔄️Sync PR To Issue
defaults:
run:
shell: pwsh
on:
pull_request_target:
types: opened
issue_comment: # This event is triggered when creating issue and pr comments
types: created
jobs:
initial_sync:
name: Start Initial Sync
if: |
github.event_name == 'pull_request_target' &&
!startsWith(github.head_ref, 'renovate/')
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected]
with:
issue-or-pr-number: ${{ github.event.pull_request.number }}
sync-type: initial
requested-by: ${{ github.event.sender.login }}
branch: ${{ github.event.pull_request.head.ref }} # Input not required for initial sync
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}
manual_sync:
name: Start Manual Sync
if: |
github.event_name == 'issue_comment' &&
github.event.issue.pull_request && github.event.issue.pull_request.url != null &&
contains(github.event.comment.body, '[run-sync]')
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected]
with:
issue-or-pr-number: ${{ github.event.issue.number }}
sync-type: manual
requested-by: "validate:${{ github.event.sender.login }}"
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}