From f18878989ae9a1cc45c79cab78121637b32d3b4d Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Thu, 27 Mar 2025 10:37:12 -0700 Subject: [PATCH 1/3] Update powershell-daily.rb --- Formula/powershell-daily.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/powershell-daily.rb b/Formula/powershell-daily.rb index c8bb44d..65ceb23 100644 --- a/Formula/powershell-daily.rb +++ b/Formula/powershell-daily.rb @@ -29,8 +29,8 @@ class PowershellDaily < Formula version "7.4.0-daily20231012.2" version_scheme 1 - # Deprecated because we are unable to maintain the automation to update the formula - deprecate! date: "2023-03-03", because: :unmaintained + # Disabled because we are unable to maintain the automation to update the formula + disable! date: "2023-03-03", because: :unmaintained # .NET Core 3.1 requires High Sierra - https://docs.microsoft.com/en-us/dotnet/core/install/dependencies?pivots=os-macos&tabs=netcore31 depends_on macos: :high_sierra From 659c88c900e8fb51d44cc54e79295eb8e6a6d1b3 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Thu, 27 Mar 2025 10:37:59 -0700 Subject: [PATCH 2/3] Delete .github/workflows/cron-powershell-daily.yml --- .github/workflows/cron-powershell-daily.yml | 44 --------------------- 1 file changed, 44 deletions(-) delete mode 100644 .github/workflows/cron-powershell-daily.yml diff --git a/.github/workflows/cron-powershell-daily.yml b/.github/workflows/cron-powershell-daily.yml deleted file mode 100644 index ba887cc..0000000 --- a/.github/workflows/cron-powershell-daily.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT license. - -name: PowerShell daily scheduled update - -permissions: read-all - -on: - workflow_dispatch: - schedule: - # On the 15th of the month - - cron: '0 0 15 * *' - -defaults: - run: - shell: pwsh -l -command ". '{0}'" - -env: - FORMULA_PATH: ./Formula/powershell-daily.rb - UPDATE_SCRIPT_PATH: ./scripts/Upgrade-Formula.ps1 - FORMULA_NAME: powershell-daily - CHANNEL_NAME: daily - HOMEBREW_NO_ENV_HINTS: 1 - HOMEBREW_NO_INSTALL_CLEANUP: 1 - -jobs: - homebrew-formula-daily: - timeout-minutes: 15 - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - - name: Prepare Agent - uses: ./.github/workflows/composite/prep - - - name: Install and Test Formula - uses: ./.github/workflows/composite/installAndTest - - - name: Create PR if needed - uses: ./.github/workflows/composite/createPR - with: - token: ${{ secrets.PR_PAT }} - From 2d17782655c523b5edb717d0f1d57dd857c62aa4 Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Tue, 1 Apr 2025 13:57:45 -0700 Subject: [PATCH 3/3] Delete .github/workflows/PR-powershell-daily.yml --- .github/workflows/PR-powershell-daily.yml | 94 ----------------------- 1 file changed, 94 deletions(-) delete mode 100644 .github/workflows/PR-powershell-daily.yml diff --git a/.github/workflows/PR-powershell-daily.yml b/.github/workflows/PR-powershell-daily.yml deleted file mode 100644 index e88add6..0000000 --- a/.github/workflows/PR-powershell-daily.yml +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright (c) Microsoft Corporation. -# Licensed under the MIT license. - -name: PowerShell daily Formula PR - -permissions: read-all - -on: - workflow_dispatch: - push: - paths: - - '.github/workflows/PR-powershell-daily.yml' - - 'Formula/powershell-daily.rb' - branches: - - master - pull_request: - -defaults: - run: - shell: pwsh -l -command ". '{0}'" - -env: - FORMULA_PATH: ./Formula/powershell-daily.rb - UPDATE_SCRIPT_PATH: ./scripts/Upgrade-Formula.ps1 - FORMULA_NAME: powershell-daily - CHANNEL_NAME: daily - 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: - workflows: ${{ steps.filter.outputs.workflows }} - steps: - - name: checkout - uses: actions/checkout@v4.2.2 - - # 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-daily.yml' - - 'Formula/powershell-daily.rb' - - - name: Capture outputs - run: | - "workflows: ${{ steps.filter.outputs.workflows }}" - shell: pwsh - - homebrew-formula-daily: - timeout-minutes: 15 - needs: changes - if: ${{ needs.changes.outputs.workflows == 'true' }} - runs-on: macos-latest - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - - - name: Check for applicable files - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 - id: filter - with: - filters: | - workflows: - - .github/workflows/PR-powershell-daily.yml - - Formula/powershell-daily.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: Daily ready to merge - needs: - - homebrew-formula-daily - - changes - if: always() - uses: PowerShell/compliance/.github/workflows/ready-to-merge.yml@v1.0.0 - with: - needs_context: ${{ toJson(needs) }}