PowerShell preview scheduled update #3286
This file contains 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 scheduled update | |
permissions: read-all | |
on: | |
workflow_dispatch: | |
schedule: | |
# At 20:20 UTC on every day-of-week from Monday through Friday. | |
- cron: '0 0/4 * * *' | |
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: | |
homebrew-formula-preview: | |
timeout-minutes: 15 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- 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 }} |