-
-
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 162 * ci: update infra version and update workflow inputs * ci: update event data * ci: update outdated workflow * ci: update infra version and add secret * ci: update infra version * ci: add single line to end of file
- Loading branch information
Showing
6 changed files
with
43 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
name: 🤖Add New Issue To Project | ||
|
||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
|
||
on: | ||
issues: | ||
types: opened | ||
pull_request_target: | ||
types: opened | ||
branches: [main, preview] | ||
branches: [main, preview, renovate/*] | ||
|
||
|
||
jobs: | ||
get_item_number: | ||
name: Get Item Number | ||
runs-on: ubuntu-latest | ||
outputs: | ||
item-number: ${{ steps.get-item-number.outputs.item-number }} | ||
steps: | ||
- name: Get Item Number | ||
id: get-item-number | ||
run: | | ||
"item-number=${{ github.event.pull_request.number }}" >> $env:GITHUB_OUTPUT; | ||
add_new_issue_to_project: | ||
name: Add New Issue | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | ||
needs: get_item_number | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | ||
with: | ||
org-name: "${{ vars.ORGANIZATION_NAME }}" | ||
org-project-name: "${{ vars.ORG_PROJECT_NAME }}" | ||
project-name: "${{ vars.PROJECT_NAME }}" | ||
repo-name: "${{ vars.PROJECT_NAME }}" | ||
item-number: ${{ needs.get_item_number.outputs.item-number }} | ||
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,10 @@ on: | |
jobs: | ||
initial_sync: | ||
name: Start Initial Sync | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | ||
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 | ||
|
@@ -29,8 +31,11 @@ jobs: | |
|
||
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] | ||
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 | ||
|
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