Skip to content

Update powershell-preview formula to version 7.5.0-preview.4 #60

Update powershell-preview formula to version 7.5.0-preview.4

Update powershell-preview formula to version 7.5.0-preview.4 #60

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: PowerShell Formula PR
permissions: read-all
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/PR-powershell.yml'
- 'Formula/powershell.rb'
branches:
- master
pull_request:
defaults:
run:
shell: pwsh
env:
FORMULA_PATH: ./Formula/powershell.rb
UPDATE_SCRIPT_PATH: ./scripts/Upgrade-Formula.ps1
FORMULA_NAME: powershell
CHANNEL_NAME: stable
HOMEBREW_NO_ENV_HINTS: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
homebrew-formula-stable:
timeout-minutes: 15
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check for applicable files
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
with:
filters: |
workflows:
- '.github/workflows/PR-powershell.yml'
- 'Formula/powershell.rb'
- name: Prepare Agent
if: steps.filter.outputs.workflows == 'true'
uses: ./.github/workflows/composite/prep
- name: Uninstall PowerShell
if: steps.filter.outputs.workflows == 'true'
shell: bash
run: |
cd /
PKG_ID='com.microsoft.powershell'
pkgutil --only-files --files ${PKG_ID} | awk '!/\.app/' | tr '\n' '\0' | xargs -n 1 -0 -p sudo rm
sudo pkgutil --forget ${PKG_ID}
- name: Install and Test Formula
if: steps.filter.outputs.workflows == 'true'
uses: ./.github/workflows/composite/installAndTest