Skip to content

🚀Production Release (v14.0.0) #65

🚀Production Release (v14.0.0)

🚀Production Release (v14.0.0) #65

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/') &&
github.head_ref != 'prev-release' && github.head_ref != 'prod-release'
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected]

Check failure on line 23 in .github/workflows/sync-pr-to-issue.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sync-pr-to-issue.yml

Invalid workflow file

error parsing called workflow ".github/workflows/sync-pr-to-issue.yml" -> "KinsonDigital/Infrastructure/.github/workflows/[email protected]" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
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.head_ref != 'prev-release' && github.head_ref != 'prod-release' &&
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 }}