Skip to content

Daily Updates

Daily Updates #7116

Workflow file for this run

# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: Daily Updates
permissions:
contents: read
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:
UPDATE_SCRIPT_PATH: ./tools/updateScript.ps1
jobs:
update-release-build-parameters:
name: Update Release Build Parameters
timeout-minutes: 15
runs-on: ubuntu-20.04
permissions:
pull-requests: write
contents: write # for peter-evans/create-pull-request to create branch
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Auto-update formula
run: |
&$env:UPDATE_SCRIPT_PATH -FormulaPath $env:FORMULA_PATH -Channel $env:CHANNEL_NAME
- name: Create Pull Request
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
id: cpr
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
with:
token: "${{ secrets.PR_PAT }}"
commit-message: "Update the release build yaml with the latest versions"
committer: PwshBot <[email protected]>
author: PwshBot <[email protected]>
title: "Update the release build yaml with the latest versions"
base: master
draft: false
branch: update-release-build
push-to-fork: pwshBot/PowerShell-Docker
update-matrix-json:
name: Update Matrix Json
timeout-minutes: 15
runs-on: ubuntu-20.04
permissions:
pull-requests: write
contents: write # for peter-evans/create-pull-request to create branch
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Setup Node.js
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3.8.2
with:
node-version: 18.x
- name: Auto-update Matrix JSON
run: |
./tools/updateJson.ps1
- name: Create Pull Request
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
id: cpr
uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # v4.2.4
with:
token: "${{ secrets.PR_PAT }}"
commit-message: "Update the matrix json"
committer: PwshBot <[email protected]>
author: PwshBot <[email protected]>
title: "Update the matrix json"
base: master
draft: false
branch: update-matrix-json
push-to-fork: pwshBot/PowerShell-Docker