Skip to content

Test [GitHub]

Test [GitHub] #5

Workflow file for this run

name: Test [GitHub]
on:
workflow_dispatch:
permissions: write-all
jobs:
TestGitHub:
name: Test GitHub
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication
steps:
- name: Test Authentication using PAT
shell: pwsh
run: |
Write-Output '::group::[Debug info] - Environment variables'
Get-ChildItem Env:
Write-Output '::endgroup::'
Write-Output '::group::[Debug info] - File structure'
Write-Verbose "Current directory: $((Get-Location).Path)" -Verbose
Write-Verbose "------------------------------------" -Verbose
Write-Verbose "Current directory content:" -Verbose
Get-ChildItem -Path . -Recurse | Select-Object -ExpandProperty FullName | Sort-Object
Write-Output '::endgroup::'
Install-Module -Name GitHub -Verbose -Force
Get-GitHubConfig
Get-GitHubWorkflow -Repo $env:GITHUB_REPOSITORY -Owner $env:GITHUB_REPOSITORY_OWNER -Verbose