-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start work for issue #159 * ci: update workflow trigger * ci: rename workflow * ci: refactor workflow to use reusable workflow * ci: replace deno version literal with repo var expression * ci: update reusable workflow versions --------- Co-authored-by: Calvin Wilkinson <[email protected]>
- Loading branch information
1 parent
9290c85
commit 10c00ad
Showing
9 changed files
with
50 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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' }} | ||
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' && 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters