check existing issues states #71
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
name: check existing issues states | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "11 8 * * *" | |
jobs: | |
search: | |
runs-on: windows-latest | |
env: | |
Github_personal_token: ${{ secrets.AU_GITHUB_API_KEY }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Authenticate with GitHub | |
run: | | |
Install-Module PowerShellForGitHub -Force -ErrorAction SilentlyContinue | |
Import-Module PowerShellForGitHub | |
$tokenEncrypted = ConvertTo-SecureString -String ${{ secrets.AU_GITHUB_API_KEY }} -AsPlainText -Force | |
$cred = New-Object System.Management.Automation.PSCredential "anything", $tokenEncrypted | |
Set-GitHubAuthentication -Credential $cred | |
$cred = $null | |
shell: pwsh | |
- name: Check issues | |
run: | | |
Import-Module PowerShellForGitHub | |
Set-GitHubConfiguration -DisableTelemetry | |
Set-Location ${{ github.workspace }} | |
& ".\tools\checkissues.ps1" |