Get new request #255
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: Get new request | |
on: | |
workflow_dispatch: | |
issues: | |
types: [closed] | |
schedule: | |
- cron: "10 8 * * *" | |
jobs: | |
search: | |
runs-on: windows-latest | |
env: | |
Github_personal_token: ${{ secrets.AU_GITHUB_API_KEY }} | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
- 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 requests | |
run: | | |
Import-Module PowerShellForGitHub | |
Set-GitHubConfiguration -DisableTelemetry | |
Set-Location ${{ github.workspace }} | |
& ".\tools\looknewer.ps1" |