-
-
Notifications
You must be signed in to change notification settings - Fork 19
30 lines (27 loc) · 957 Bytes
/
closed-issue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Get new request
on:
workflow_dispatch:
issues:
types: [closed]
jobs:
search:
runs-on: windows-latest
env:
Github_personal_token: ${{ secrets.AU_GITHUB_API_KEY }}
steps:
- uses: actions/checkout@v2.2.0
- 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"