The container-action-pwsh repo contains the base files to create a Docker action that uses PowerShell.
Navigate to https://github.com/TylerLeonhardt/container-action-pwsh
/*--------------------------------------------------------------------------------------------- | |
* Copyright (c) Microsoft Corporation. All rights reserved. | |
* Licensed under the MIT License. See License.txt in the project root for license information. | |
*--------------------------------------------------------------------------------------------*/ | |
import * as assert from 'assert'; | |
import { DisposableStore } from 'vs/base/common/lifecycle'; | |
import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; | |
import { TestDialogService } from 'vs/platform/dialogs/test/common/testDialogService'; | |
import { ExtensionIdentifier, IExtensionDescription } from 'vs/platform/extensions/common/extensions'; |
FROM mcr.microsoft.com/powershell:latest | |
RUN apt-get update && apt-get install wget | |
COPY LICENSE README.md / | |
COPY install-vso.sh /install-vso.sh | |
RUN sh /install-vso.sh | |
COPY entrypoint.ps1 /entrypoint.ps1 | |
ENTRYPOINT ["pwsh", "-Command", "/entrypoint.ps1"] |
#param( | |
$RootPath = "/Users/tyleonha/Desktop/SurvivorDays" | |
#) | |
$movies = Get-ChildItem $RootPath -File | |
$folders = [System.Collections.Generic.List[string]]@( | |
"placeholder since index 0 is the 'new folder' option" | |
) | |
$title = "Choice prompt" | |
$whichFolder = "Which folder would you like to put this in?" |
The container-action-pwsh repo contains the base files to create a Docker action that uses PowerShell.
Navigate to https://github.com/TylerLeonhardt/container-action-pwsh
#Requires -Modules PowerShellForGitHub | |
# Change this to you: | |
$owner = 'TylerLeonhardt' | |
# This will ignore forks | |
Get-GitHubRepository -OwnerName $owner -Sort Pushed | Where-Object fork -ne $true | ForEach-Object { | |
# Clone the repo and move into it | |
$item = New-Item -ItemType Directory -Path "Temp:/$(New-Guid)/$($_.name)" | |
git clone $_.ssh_url $item.FullName |
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os" | |
"strings" |
# Set CurrentDirectory when LocationChangedAction is invoked. | |
# This allows iTerm2's "Reuse previous session's directory" to work | |
$ExecutionContext.SessionState.InvokeCommand.LocationChangedAction += { | |
[Environment]::CurrentDirectory = $pwd.Path | |
} |
steps: | |
- powershell: | | |
Write-Host "Installing PowerShell Daily..." | |
# Use `AGENT_TEMPDIRECTORY` to make sure the downloaded PowerShell is cleaned up. | |
$powerShellPath = Join-Path -Path $env:AGENT_TEMPDIRECTORY -ChildPath 'powershell' | |
Invoke-WebRequest -Uri https://aka.ms/install-powershell.ps1 -OutFile ./install-powershell.ps1 | |
./install-powershell.ps1 -Destination $powerShellPath -Daily |
{title: Sleepin' } | |
{artist: Relient K } | |
{define: C/D frets 0 2 0 3 fingers 0 1 0 2} | |
{comment: Intro} | |
{comment: Tab 1} | |
{sot} | |
A|---------0---------0------7\-0---|---------0---------0-------------| | |
E|-3---3/5-------5/7---------------|-3---3/5-------5/7-------5\3-0-3-| |