-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17d23c6
commit 2e5bb90
Showing
2 changed files
with
31 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -14,4 +14,4 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Check exception | ||
run: | | ||
. "${{ github.workspace }}\scripts\Find-nextissue.ps1" | ||
. "${{ github.workspace }}\scripts\Find-nextissueGH.ps1" -packageName ${{ github.event.issue.title }} |
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,30 @@ | ||
$ErrorActionPreference = 'Continue' | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[string]$packageName | ||
) | ||
|
||
Install-Module psgithubsearch -ErrorAction SilentlyContinue | ||
Import-Module psgithubsearch | ||
|
||
[string]$Owner = "tunisiano187" | ||
[string]$Repository = "Chocolatey-packages" | ||
|
||
Write-Output "Search the next package to import" | ||
$search = $packageName | ||
if($search) { | ||
$folder = Join-Path $PSScriptRoot "../automatic/$search" | ||
if(Test-Path $folder) { | ||
Write-Warning "Package already in the folder, the package $search needs to be finished and the issue closed" | ||
} elseif ($search -ne '') { | ||
$script = Join-Path $PSScriptRoot "Get-Package.ps1" | ||
. $script $search.Tolower() | ||
} | ||
} | ||
|
||
try { | ||
git push origin master | ||
} | ||
catch { | ||
"Nothing to push!" | ||
} |