-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #236 * ci: improve sync system workflows * ci: improve release workflow * ci: update workflow and job names * ci: update reusable workflow versions
- Loading branch information
1 parent
42c6983
commit c2877cb
Showing
6 changed files
with
129 additions
and
120 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 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,53 @@ | ||
name: 🤖Sync Bot | ||
|
||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
|
||
on: | ||
issues: | ||
types: [labeled, unlabeled, assigned, unassigned, milestoned, demilestoned] | ||
|
||
|
||
jobs: | ||
sync_bot: | ||
name: Sync Bot | ||
if: ${{ !github.event.issue.pull_request }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set Up Deno | ||
if: startsWith(github.ref_name, 'feature/') | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Run Sync Bot (Issue Change) | ||
if: startsWith(github.ref_name, 'feature/') | ||
run: | | ||
$scriptUrl = "${{ vars.SCRIPT_BASE_URL }}/${{ vars.CICD_SCRIPTS_VERSION }}/${{ vars.SCRIPT_RELATIVE_DIR_PATH}}/sync-bot-status-check.ts"; | ||
$issueNumber = "${{ github.event.issue.number }}"; | ||
echo "Project Name: ${{ vars.PROJECT_NAME }}"; | ||
echo "Issue: $issueNumber"; | ||
if ($manuallyExecuted -and $issueNumber -eq "0") { | ||
echo "The issue or PR number must be a value greater than 0."; | ||
exit 1; | ||
} | ||
<# Deno Args: | ||
1. Project Name | ||
2. Issue Number | ||
3. Event Type - set to issue event type | ||
4. GitHub token | ||
#> | ||
deno run ` | ||
--allow-net ` | ||
"$scriptUrl" ` | ||
"${{ vars.PROJECT_NAME }}" ` | ||
"$issueNumber" ` | ||
"issue" ` | ||
"${{ secrets.CICD_REST_API }}"; |
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,51 @@ | ||
name: ✅Sync Status Check | ||
|
||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: [main, preview] | ||
|
||
|
||
jobs: | ||
sync_status_check: | ||
name: Sync Status Check | ||
if: startsWith(github.head_ref, 'feature/') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set Up Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Run Sync Status Check | ||
run: | | ||
$scriptUrl = "${{ vars.SCRIPT_BASE_URL }}/${{ vars.CICD_SCRIPTS_VERSION }}/${{ vars.SCRIPT_RELATIVE_DIR_PATH}}/sync-bot-status-check.ts"; | ||
$prNumber = "${{ github.event.number }}"; | ||
echo "Project Name: ${{ vars.PROJECT_NAME }}"; | ||
echo "PR Number: $prNumber"; | ||
echo "Event Type: pr"; | ||
if ($manuallyExecuted -and $prNumber -eq "0") { | ||
echo "The issue or PR number must be a value greater than 0."; | ||
exit 1; | ||
} | ||
<# Deno Args: | ||
1. Project Name | ||
2. PR Number | ||
3. Event Type - set to pull request event type | ||
4. GitHub token | ||
#> | ||
deno run ` | ||
--allow-net ` | ||
"$scriptUrl" ` | ||
"${{ vars.PROJECT_NAME }}" ` | ||
"$prNumber" ` | ||
"pr" ` | ||
"${{ secrets.CICD_REST_API }}"; |
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