-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathaction.ps1
More file actions
24 lines (16 loc) · 710 Bytes
/
action.ps1
File metadata and controls
24 lines (16 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Set Global Preference
$Global:ErrorActionPreference = 'Continue'
# Import all modules
Join-Path $PSScriptRoot 'src' | Get-ChildItem -File | Select-Object -ExpandProperty Fullname | Import-Module
Install-Scoop
Test-NestedBucket
Initialize-NeededConfiguration
git config --get user.email
Write-LogInfo 'Importing all modules'
# Load all scoop's modules.
# Dot sourcing needs to be done on highest scope possible to propagate into lower scopes
Get-ChildItem (Join-Path $env:SCOOP_HOME 'lib') '*.ps1' | ForEach-Object { . $_.FullName }
Write-LogInfo 'FULL EVENT' $GITHUB_EVENT_RAW
Invoke-Action
Write-LogInfo 'Number of Github Requests' $env:GH_REQUEST_COUNTER
if ($env:NON_ZERO_EXIT) { exit $NON_ZERO }