Bump dorny/paths-filter from 2.11.1 to 3.0.2 #90
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Microsoft Corporation. | |
# Licensed under the MIT license. | |
name: PowerShell preview PR | |
permissions: read-all | |
on: | |
push: | |
paths: | |
- '.github/workflows/PR-powershell-preview.yml' | |
- 'Formula/powershell-preview.rb' | |
branches: | |
- master | |
pull_request: | |
defaults: | |
run: | |
shell: pwsh | |
env: | |
FORMULA_PATH: ./Formula/powershell-preview.rb | |
UPDATE_SCRIPT_PATH: ./scripts/Upgrade-Formula.ps1 | |
FORMULA_NAME: powershell-preview | |
CHANNEL_NAME: preview | |
HOMEBREW_NO_ENV_HINTS: 1 | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
jobs: | |
changes: | |
if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell' | |
name: Change Detection | |
runs-on: ubuntu-latest | |
# Required permissions | |
permissions: | |
pull-requests: read | |
# Set job outputs to values from filter step | |
outputs: | |
source: ${{ steps.filter.outputs.workflows }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
# For pull requests it's not necessary to checkout the code | |
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.2.0 | |
id: filter | |
with: | |
list-files: json | |
filters: | | |
workflows: | |
- '.github/workflows/PR-powershell-lts.yml' | |
- 'Formula/powershell-lts.rb' | |
- name: Capture outputs | |
run: | | |
"workflows: ${{ steps.filter.outputs.workflows }}" | |
shell: pwsh | |
homebrew-formula-preview: | |
timeout-minutes: 15 | |
needs: changes | |
if: ${{ needs.changes.outputs.workflows == 'true' }} | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check for applicable files | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 | |
id: filter | |
with: | |
filters: | | |
workflows: | |
- .github/workflows/PR-powershell-preview.yml | |
- Formula/powershell-preview.rb | |
- name: Prepare Agent | |
if: steps.filter.outputs.workflows == 'true' | |
uses: ./.github/workflows/composite/prep | |
- name: Install and Test Formula | |
if: steps.filter.outputs.workflows == 'true' | |
uses: ./.github/workflows/composite/installAndTest | |
ready_to_merge: | |
name: Preview ready to merge | |
needs: | |
- homebrew-formula-preview | |
- changes | |
if: always() | |
uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0 | |
with: | |
needs_context: ${{ toJson(needs) }} |